Commit 9df3437f authored by Baptiste Coudurier's avatar Baptiste Coudurier Committed by Michael Niedermayer

This patch makes output codec keeping input pix_fmt value when using

stream_copy
patch by (Baptiste COUDURIER <baptiste@coudurier.smartjog@com>)

Originally committed as revision 5017 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 2fdd5a68
......@@ -1661,6 +1661,7 @@ static int av_encode(AVFormatContext **output_files,
codec->block_align= icodec->block_align;
break;
case CODEC_TYPE_VIDEO:
codec->pix_fmt = icodec->pix_fmt;
codec->width = icodec->width;
codec->height = icodec->height;
codec->has_b_frames = icodec->has_b_frames;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment