[libav-stable] [PATCH] prores: Error out only on surely incomplete ac_coeffs

Sean McGovern gseanmcg at gmail.com
Fri Jan 10 05:09:12 CET 2014


From: Luca Barbato <lu_zero at gentoo.org>

---
 libavcodec/proresdec.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/proresdec.c b/libavcodec/proresdec.c
index 6d63463..2049545 100644
--- a/libavcodec/proresdec.c
+++ b/libavcodec/proresdec.c
@@ -389,7 +389,7 @@ static inline int decode_ac_coeffs(GetBitContext *gb, DCTELEM *out,
 
         bits_left = get_bits_left(gb);
         if (bits_left <= 0 || (bits_left <= 8 && !show_bits(gb, bits_left)))
-            return AVERROR_INVALIDDATA;
+            return 0;
 
         run = decode_vlc_codeword(gb, ff_prores_ac_codebook[run_cb_index]);
         if (run < 0)
-- 
1.7.9.2



More information about the libav-stable mailing list