From 1ba3bae800d41f239109ae82dc06617962657f48 Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Sun, 9 Mar 2008 14:15:40 +0000 Subject: Correctly handle empty frames Originally committed as revision 12394 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/zmbv.c | 1 + 1 file changed, 1 insertion(+) (limited to 'libavcodec/zmbv.c') 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); } -- cgit v1.2.3