Commit 6f7e51ea authored by vitor's avatar vitor

Do not write junk in the end of truncated files. FATE

ra144 test will probably need to be updated.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@13839 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 3bcc70ff
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment