[FFmpeg-cvslog] prores: Error out only on surely incomplete ac_coeffs
Luca Barbato
git at videolan.org
Mon Jan 13 15:14:29 CET 2014
ffmpeg | branch: release/1.1 | Luca Barbato <lu_zero at gentoo.org> | Thu Oct 10 10:26:31 2013 +0200| [9aa22918c258bfe8ee0769fe158d41a344e3178a] | committer: Luca Barbato
prores: Error out only on surely incomplete ac_coeffs
(cherry picked from commit 2df7f7714a12a59d31058aba15fb1e348e36b0ab)
Signed-off-by: Luca Barbato <lu_zero at gentoo.org>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=9aa22918c258bfe8ee0769fe158d41a344e3178a
---
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)
More information about the ffmpeg-cvslog
mailing list