1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-26 19:01:44 +02:00

vp9: fix profile check for intraonly frames.

Reviewed-by: James Zern <jzern@google.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Ronald S. Bultje 2015-06-24 10:41:00 -04:00 committed by Michael Niedermayer
parent b04c630a3d
commit d5a36edda4

View File

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