changeset 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 18279e49cd4a
files ra144.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ra144.c	Thu Jun 19 20:51:56 2008 +0000
+++ b/ra144.c	Fri Jun 20 20:46:07 2008 +0000
@@ -343,6 +343,7 @@
     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);