[FFmpeg-devel] [PATCH]Copy codec profile on stream copy

Carl Eugen Hoyos cehoyos at ag.or.at
Wed Apr 1 14:40:59 CEST 2015


Attached patch allows a muxer to know (and possibly write) 
the codec profile on stream copying.

Please comment, Carl Eugen
-------------- next part --------------
diff --git a/ffmpeg.c b/ffmpeg.c
index 67ce1f3..4499f5a 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -2675,6 +2675,7 @@ static int transcode_init(void)
             enc_ctx->bits_per_coded_sample  = dec_ctx->bits_per_coded_sample;
             enc_ctx->time_base = ist->st->time_base;
+            enc_ctx->profile   = dec_ctx->profile;
              * Avi is a special case here because it supports variable fps but
              * having the fps and timebase differe significantly adds quite some

More information about the ffmpeg-devel mailing list