summaryrefslogtreecommitdiff
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorBaptiste Coudurier <baptiste.coudurier@smartjog.com>2006-02-13 15:36:13 +0000
committerMichael Niedermayer <michaelni@gmx.at>2006-02-13 15:36:13 +0000
commit9df3437fe1fb99554a9bc2490e267db47fa850ae (patch)
tree7e7c9a3f7404e0ca58eda8304ebdde6ee5573cd4 /ffmpeg.c
parent2fdd5a68d34b4fe120a6ab5c63cbec4c126d1e7f (diff)
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
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index 6d22e43b16..3644e34a0b 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -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;