diff options
author | Vitor Sessak <vitor1001@gmail.com> | 2008-06-20 20:46:07 +0000 |
---|---|---|
committer | Vitor Sessak <vitor1001@gmail.com> | 2008-06-20 20:46:07 +0000 |
commit | 072f66c9803881da25d5b787ef6a33f251349d7a (patch) | |
tree | 617ddcea3e0ffb723d1575ba947866607bd93966 /libavcodec | |
parent | ade8d8b939ccdb3d0c02fed59bdce2f355daa177 (diff) | |
download | ffmpeg-072f66c9803881da25d5b787ef6a33f251349d7a.tar.gz |
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
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/ra144.c | 1 |
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); |