]> git.sesse.net Git - ffmpeg/commitdiff
avcodec/frame_thread_encoder: warn about huffyuv limitations
authorMichael Niedermayer <michaelni@gmx.at>
Sat, 15 Feb 2014 14:16:51 +0000 (15:16 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 15 Feb 2014 14:16:51 +0000 (15:16 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/frame_thread_encoder.c

index 05a7c6b43f018a1fbcfdc6fe37d90d1815c5bfd8..3ab5b91038b77741dcacee9d7c63f70f3131e1a5 100644 (file)
@@ -144,6 +144,8 @@ int ff_frame_thread_encoder_init(AVCodecContext *avctx, AVDictionary *options){
         avctx->codec_id == AV_CODEC_ID_FFVHUFF) {
         // huffyuv doesnt support these with multiple frame threads currently
         if (avctx->context_model > 0 || (avctx->flags & CODEC_FLAG_PASS1)) {
+            av_log(avctx, AV_LOG_WARNING,
+               "Forcing thread count to 1 for huffyuv encoding with first pass or context 1\n");
             avctx->thread_count = 1;
         }
     }