Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <cehoyos@ag.or.at>2015-05-17 11:22:03 +0300
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2015-05-17 11:22:03 +0300
commit70c0433525bc4f98c91c6a6d09025e90a847e62f (patch)
tree95ad6b676a781c42399aa631feabc99b29df98a0 /libavcodec/utils.c
parent2acc06565321fde44faf407679c9c211aacaca08 (diff)
lavc: Print a warning if gray decoding was requested but not enabled.
Diffstat (limited to 'libavcodec/utils.c')
-rw-r--r--libavcodec/utils.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index 48286cf07a..8695cb9689 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -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);