avcodec/videotoolboxenc: warn user when output will use a different profile/level...
authorRick Kern <rick@8birdsvideo.com>
Mon, 16 Sep 2019 13:02:02 +0000 (09:02 -0400)
committerRick Kern <rick@8birdsvideo.com>
Mon, 16 Sep 2019 13:02:59 +0000 (09:02 -0400)
Signed-off-by: Rick Kern <kernrj@gmail.com>
libavcodec/videotoolboxenc.c

index 6a02d0e..40a7f64 100644 (file)
@@ -1112,7 +1112,7 @@ static int vtenc_create_encoder(AVCodecContext   *avctx,
                                         kVTCompressionPropertyKey_ProfileLevel,
                                         profile_level);
             if (status) {
-                av_log(avctx, AV_LOG_ERROR, "Error setting profile/level property: %d\n", status);
+                av_log(avctx, AV_LOG_ERROR, "Error setting profile/level property: %d. Output will be encoded using a supported profile/level combination.\n", status);
             }
         }
     }