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
This commit is contained in:
Vitor Sessak 2008-06-20 20:46:07 +00:00
parent ade8d8b939
commit 072f66c980
1 changed files with 1 additions and 0 deletions

View 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);