aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero@gentoo.org>2013-10-10 10:26:31 +0200
committerLuca Barbato <lu_zero@gentoo.org>2014-01-13 14:18:37 +0100
commit9aa22918c258bfe8ee0769fe158d41a344e3178a (patch)
tree538ba18d834e5d0bf9b724ca717e27edc220386d /libavcodec
parenta0866c71293db80f271f11176eae72217d773e9a (diff)
downloadffmpeg-9aa22918c258bfe8ee0769fe158d41a344e3178a.tar.gz
prores: Error out only on surely incomplete ac_coeffs
(cherry picked from commit 2df7f7714a12a59d31058aba15fb1e348e36b0ab) Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/proresdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/proresdec.c b/libavcodec/proresdec.c
index 6d63463ab7..2049545405 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)