summaryrefslogtreecommitdiff
path: root/libavcodec/zmbv.c
diff options
context:
space:
mode:
authorKostya Shishkov <kostya.shishkov@gmail.com>2008-03-09 14:15:40 +0000
committerKostya Shishkov <kostya.shishkov@gmail.com>2008-03-09 14:15:40 +0000
commit1ba3bae800d41f239109ae82dc06617962657f48 (patch)
tree99b12a6a0abb26f846c7637b484bfa7e2c7842dc /libavcodec/zmbv.c
parent8c908d7d61d1d5dd5d0114ecfc44d59958523a96 (diff)
downloadffmpeg-1ba3bae800d41f239109ae82dc06617962657f48.tar.gz
Correctly handle empty frames
Originally committed as revision 12394 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/zmbv.c')
-rw-r--r--libavcodec/zmbv.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/zmbv.c b/libavcodec/zmbv.c
index 1eb8ef00a1..fd2a120487 100644
--- a/libavcodec/zmbv.c
+++ b/libavcodec/zmbv.c
@@ -504,6 +504,7 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, const
} else {
c->pic.key_frame = 0;
c->pic.pict_type = FF_P_TYPE;
+ if(c->decomp_len)
c->decode_xor(c);
}