summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVitor Sessak <vitor1001@gmail.com>2008-06-20 20:46:07 +0000
committerVitor Sessak <vitor1001@gmail.com>2008-06-20 20:46:07 +0000
commit072f66c9803881da25d5b787ef6a33f251349d7a (patch)
tree617ddcea3e0ffb723d1575ba947866607bd93966
parentade8d8b939ccdb3d0c02fed59bdce2f355daa177 (diff)
Do not write junk in the end of truncated files. FATE
ra144 test will probably need to be updated. Originally committed as revision 13839 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavcodec/ra144.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/ra144.c b/libavcodec/ra144.c
index 997dfd82be..142ffc93f9 100644
--- a/libavcodec/ra144.c
+++ b/libavcodec/ra144.c
@@ -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);