mirror of https://git.ffmpeg.org/ffmpeg.git
ffmpeg_vaapi: fix choice of decoder_format
The check could previously never evaluate to true, probably due to a typo. Reported-By: Mihai Chindea <mihai.chindea@uti.eu.com> Signed-off-by: Moritz Barsnick <barsnick@gmx.net> Tested-by: Mark Thompson <sw@jkqxz.net> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
95f2dcafe1
commit
1846a3eac8
|
@ -302,7 +302,7 @@ static int vaapi_build_decoder_config(VAAPIDecoderContext *ctx,
|
||||||
if (ctx->output_format != AV_PIX_FMT_NONE &&
|
if (ctx->output_format != AV_PIX_FMT_NONE &&
|
||||||
ctx->output_format != AV_PIX_FMT_VAAPI) {
|
ctx->output_format != AV_PIX_FMT_VAAPI) {
|
||||||
for (i = 0; constraints->valid_sw_formats[i] != AV_PIX_FMT_NONE; i++) {
|
for (i = 0; constraints->valid_sw_formats[i] != AV_PIX_FMT_NONE; i++) {
|
||||||
if (constraints->valid_sw_formats[i] == ctx->decode_format) {
|
if (constraints->valid_sw_formats[i] == ctx->output_format) {
|
||||||
ctx->decode_format = ctx->output_format;
|
ctx->decode_format = ctx->output_format;
|
||||||
av_log(ctx, AV_LOG_DEBUG, "Using decode format %s (output "
|
av_log(ctx, AV_LOG_DEBUG, "Using decode format %s (output "
|
||||||
"format).\n", av_get_pix_fmt_name(ctx->decode_format));
|
"format).\n", av_get_pix_fmt_name(ctx->decode_format));
|
||||||
|
|
Loading…
Reference in New Issue