[FFmpeg-cvslog] vp9: fix profile check for intraonly frames.

Ronald S. Bultje git at videolan.org
Thu Jun 25 04:57:54 CEST 2015


ffmpeg | branch: master | Ronald S. Bultje <rsbultje at gmail.com> | Wed Jun 24 10:41:00 2015 -0400| [d5a36edda437d2931c019eb546d2bdfd02efd948] | committer: Michael Niedermayer

vp9: fix profile check for intraonly frames.

Reviewed-by: James Zern <jzern at google.com>
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d5a36edda437d2931c019eb546d2bdfd02efd948
---

 libavcodec/vp9.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/vp9.c b/libavcodec/vp9.c
index 9d9326c..3ad9056 100644
--- a/libavcodec/vp9.c
+++ b/libavcodec/vp9.c
@@ -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 {



More information about the ffmpeg-cvslog mailing list