Mercurial > libavcodec.hg
comparison ra144.c @ 7085:f55f71e2be57 libavcodec
Do not write junk in the end of truncated files. FATE
ra144 test will probably need to be updated.
author | vitor |
---|---|
date | Fri, 20 Jun 2008 20:46:07 +0000 |
parents | 424cb385c5ae |
children | 1ad555e54621 |
comparison
equal
deleted
inserted
replaced
7084:424cb385c5ae | 7085:f55f71e2be57 |
---|---|
341 GetBitContext gb; | 341 GetBitContext gb; |
342 | 342 |
343 if(buf_size < 20) { | 343 if(buf_size < 20) { |
344 av_log(avctx, AV_LOG_ERROR, | 344 av_log(avctx, AV_LOG_ERROR, |
345 "Frame too small (%d bytes). Truncated file?\n", buf_size); | 345 "Frame too small (%d bytes). Truncated file?\n", buf_size); |
346 *data_size = 0; | |
346 return buf_size; | 347 return buf_size; |
347 } | 348 } |
348 init_get_bits(&gb, buf, 20 * 8); | 349 init_get_bits(&gb, buf, 20 * 8); |
349 | 350 |
350 for (i=0; i<10; i++) | 351 for (i=0; i<10; i++) |