mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
lavc: Print a warning if gray decoding was requested but not enabled.
This commit is contained in:
parent
2acc065653
commit
70c0433525
@ -1615,6 +1615,11 @@ int attribute_align_arg avcodec_open2(AVCodecContext *avctx, const AVCodec *code
|
||||
avctx->pts_correction_last_pts =
|
||||
avctx->pts_correction_last_dts = INT64_MIN;
|
||||
|
||||
if ( !CONFIG_GRAY && avctx->flags & CODEC_FLAG_GRAY
|
||||
&& avctx->codec_descriptor->type == AVMEDIA_TYPE_VIDEO)
|
||||
av_log(avctx, AV_LOG_WARNING,
|
||||
"gray decoding requested but not enabled at configuration time\n");
|
||||
|
||||
if ( avctx->codec->init && (!(avctx->active_thread_type&FF_THREAD_FRAME)
|
||||
|| avctx->internal->frame_thread_encoder)) {
|
||||
ret = avctx->codec->init(avctx);
|
||||
|
Loading…
Reference in New Issue
Block a user