mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-04-14 00:58:38 +02:00
avcodec/dpxenc: 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
39d28ea4d5
commit
30c802f3ae
@ -68,9 +68,6 @@ static av_cold int encode_init(AVCodecContext *avctx)
|
|||||||
if (avctx->bits_per_raw_sample)
|
if (avctx->bits_per_raw_sample)
|
||||||
s->bits_per_component = avctx->bits_per_raw_sample;
|
s->bits_per_component = avctx->bits_per_raw_sample;
|
||||||
break;
|
break;
|
||||||
default:
|
|
||||||
av_log(avctx, AV_LOG_INFO, "unsupported pixel format\n");
|
|
||||||
return -1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user