mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-04-14 00:58:38 +02:00
avcodec/dnxhdenc: Remove redundant pixel format check
ff_encode_preinit() already checked the pixel format via AVCodec.pix_fmts. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
30c802f3ae
commit
eec5a45f05
@ -363,10 +363,6 @@ static av_cold int dnxhd_encode_init(AVCodecContext *avctx)
|
||||
case AV_PIX_FMT_GBRP10:
|
||||
ctx->bit_depth = 10;
|
||||
break;
|
||||
default:
|
||||
av_log(avctx, AV_LOG_ERROR,
|
||||
"pixel format is incompatible with DNxHD\n");
|
||||
return AVERROR(EINVAL);
|
||||
}
|
||||
|
||||
if ((ctx->profile == FF_PROFILE_DNXHR_444 && (avctx->pix_fmt != AV_PIX_FMT_YUV444P10 &&
|
||||
|
Loading…
x
Reference in New Issue
Block a user