ffmpeg.c: copy video profile when using stream_copy
authorMark Reid <mindmark@gmail.com>
Fri, 22 Jul 2016 20:30:14 +0000 (13:30 -0700)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 23 Jul 2016 01:52:38 +0000 (03:52 +0200)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
ffmpeg.c

index b29be1e..1367920 100644 (file)
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -3019,6 +3019,7 @@ static int transcode_init(void)
                 enc_ctx->width              = dec_ctx->width;
                 enc_ctx->height             = dec_ctx->height;
                 enc_ctx->has_b_frames       = dec_ctx->has_b_frames;
+                enc_ctx->profile            = dec_ctx->profile;
                 if (ost->frame_aspect_ratio.num) { // overridden by the -aspect cli option
                     sar =
                         av_mul_q(ost->frame_aspect_ratio,