diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2019-08-20 11:51:48 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2019-12-06 20:30:57 +0100 |
commit | 8fecba0aa7e3f74b753cba18119e72b6f1211874 (patch) | |
tree | 185377d87d53e3633e6229c8badd899bf9a9d41a /libavcodec/vp5.c | |
parent | 04acafdc7c36f18c03ff424f1db8a76fa705c112 (diff) | |
download | ffmpeg-8fecba0aa7e3f74b753cba18119e72b6f1211874.tar.gz |
avcodec/vp5/6/8: use vpX_rac_is_end()
Reviewed-by: Peter Ross <pross@xvid.org>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit ab56e62e8f7e02760cfc883956511cab32393315)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 1dd89192c59df0d6655e9308a0782d8c7b259b18)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/vp5.c')
-rw-r--r-- | libavcodec/vp5.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/vp5.c b/libavcodec/vp5.c index 7100bb455d..d18fd5b289 100644 --- a/libavcodec/vp5.c +++ b/libavcodec/vp5.c @@ -184,7 +184,7 @@ static int vp5_parse_coeff(VP56Context *s) int b, i, cg, idx, ctx, ctx_last; int pt = 0; /* plane type (0 for Y, 1 for U or V) */ - if (c->end <= c->buffer && c->bits >= 0) { + if (vpX_rac_is_end(c)) { av_log(s->avctx, AV_LOG_ERROR, "End of AC stream reached in vp5_parse_coeff\n"); return AVERROR_INVALIDDATA; } |