vp9: fix profile check for intraonly frames.
authorRonald S. Bultje <rsbultje@gmail.com>
Wed, 24 Jun 2015 14:41:00 +0000 (10:41 -0400)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 25 Jun 2015 02:29:03 +0000 (04:29 +0200)
Reviewed-by: James Zern <jzern@google.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/vp9.c

index 9d9326c..3ad9056 100644 (file)
@@ -594,7 +594,7 @@ static int decode_frame_header(AVCodecContext *ctx,
                 av_log(ctx, AV_LOG_ERROR, "Invalid sync code\n");
                 return AVERROR_INVALIDDATA;
             }
-            if (ctx->profile == 1) {
+            if (ctx->profile >= 1) {
                 if ((fmt = read_colorspace_details(ctx)) < 0)
                     return fmt;
             } else {