summaryrefslogtreecommitdiff
path: root/libavcodec/proresdec.c
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero@gentoo.org>2013-10-10 10:26:31 +0200
committerLuca Barbato <lu_zero@gentoo.org>2013-10-10 10:26:31 +0200
commit2df7f7714a12a59d31058aba15fb1e348e36b0ab (patch)
tree31147e0d91e47de014c7f8eb5831d9c628776664 /libavcodec/proresdec.c
parent44690dfa683f620c77e9f0e8e9bc5682608636b1 (diff)
prores: Error out only on surely incomplete ac_coeffs
Diffstat (limited to 'libavcodec/proresdec.c')
-rw-r--r--libavcodec/proresdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/proresdec.c b/libavcodec/proresdec.c
index db998fadf4..c65d7298f2 100644
--- a/libavcodec/proresdec.c
+++ b/libavcodec/proresdec.c
@@ -390,7 +390,7 @@ static inline int decode_ac_coeffs(GetBitContext *gb, int16_t *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]);