[FFmpeg-cvslog] avcodec/proresenc_kostya: set avctx->profile from ctx

Paul B Mahol git at videolan.org
Thu Jun 8 01:49:43 EEST 2023


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Wed Jun  7 13:49:49 2023 +0200| [1d7a6eaee66ff7481a0c9a4f4e539227a9d55839] | committer: Paul B Mahol

avcodec/proresenc_kostya: set avctx->profile from ctx

Otherwise muxers may not be able to guess it.
Option is still set by user, but via private codec option.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=1d7a6eaee66ff7481a0c9a4f4e539227a9d55839
---

 libavcodec/proresenc_kostya.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libavcodec/proresenc_kostya.c b/libavcodec/proresenc_kostya.c
index 77ab524046..52fe5639b1 100644
--- a/libavcodec/proresenc_kostya.c
+++ b/libavcodec/proresenc_kostya.c
@@ -1355,6 +1355,7 @@ static av_cold int encode_init(AVCodecContext *avctx)
     }
 
     avctx->codec_tag   = ctx->profile_info->tag;
+    avctx->profile = ctx->profile;
 
     av_log(avctx, AV_LOG_DEBUG,
            "profile %d, %d slices, interlacing: %s, %d bits per MB\n",



More information about the ffmpeg-cvslog mailing list