summaryrefslogtreecommitdiff
path: root/libavcodec/vp6.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2019-08-20 11:51:48 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2019-08-22 18:35:44 +0200
commitab56e62e8f7e02760cfc883956511cab32393315 (patch)
treef0aae1dd1f71ec528ec0b88bd515941427353316 /libavcodec/vp6.c
parent5937f0550304e39be64ce41cc936634f1db54e5d (diff)
downloadffmpeg-ab56e62e8f7e02760cfc883956511cab32393315.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>
Diffstat (limited to 'libavcodec/vp6.c')
-rw-r--r--libavcodec/vp6.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/vp6.c b/libavcodec/vp6.c
index 977fcb7076..e5dec19f50 100644
--- a/libavcodec/vp6.c
+++ b/libavcodec/vp6.c
@@ -473,7 +473,7 @@ static int vp6_parse_coeff(VP56Context *s)
int b, i, cg, idx, ctx;
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 vp6_parse_coeff\n");
return AVERROR_INVALIDDATA;
}