[FFmpeg-cvslog] r13839 - trunk/libavcodec/ra144.c

vitor subversion
Fri Jun 20 22:46:07 CEST 2008


Author: vitor
Date: Fri Jun 20 22:46:07 2008
New Revision: 13839

Log:
Do not write junk in the end of truncated files. FATE 
ra144 test will probably need to be updated.


Modified:
   trunk/libavcodec/ra144.c

Modified: trunk/libavcodec/ra144.c
==============================================================================
--- trunk/libavcodec/ra144.c	(original)
+++ trunk/libavcodec/ra144.c	Fri Jun 20 22:46:07 2008
@@ -343,6 +343,7 @@ static int ra144_decode_frame(AVCodecCon
     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);




More information about the ffmpeg-cvslog mailing list