]> rtime.felk.cvut.cz Git - frescor/ffmpeg.git/commitdiff
Do not write junk in the end of truncated files. FATE
authorvitor <vitor@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Fri, 20 Jun 2008 20:46:07 +0000 (20:46 +0000)
committervitor <vitor@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Fri, 20 Jun 2008 20:46:07 +0000 (20:46 +0000)
ra144 test will probably need to be updated.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@13839 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

libavcodec/ra144.c

index 997dfd82bed0e2c117a178fdcc2ed51eb9d2528e..142ffc93f9d720972fb2dc317e252112adfbdfaf 100644 (file)
@@ -343,6 +343,7 @@ static int ra144_decode_frame(AVCodecContext * avctx,
     if(buf_size < 20) {
         av_log(avctx, AV_LOG_ERROR,
                "Frame too small (%d bytes). Truncated file?\n", buf_size);
+        *data_size = 0;
         return buf_size;
     }
     init_get_bits(&gb, buf, 20 * 8);