mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-02-24 07:46:56 +00:00
avcodec/jpeglsenc: Remove redundant pixel format checks
This encoder has AVCodec.pix_fmts set, so ff_encode_preinit() already checks for this. Reviewed-by: James Almer <jamrial@gmail.com> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
b972dab39d
commit
33db0cbfd0
@ -429,14 +429,6 @@ FF_DISABLE_DEPRECATION_WARNINGS
|
||||
FF_ENABLE_DEPRECATION_WARNINGS
|
||||
#endif
|
||||
|
||||
if (ctx->pix_fmt != AV_PIX_FMT_GRAY8 &&
|
||||
ctx->pix_fmt != AV_PIX_FMT_GRAY16 &&
|
||||
ctx->pix_fmt != AV_PIX_FMT_RGB24 &&
|
||||
ctx->pix_fmt != AV_PIX_FMT_BGR24) {
|
||||
av_log(ctx, AV_LOG_ERROR,
|
||||
"Only grayscale and RGB24/BGR24 images are supported\n");
|
||||
return -1;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user