From 143df827893bccd41035569a9dddd56a8e0226c3 Mon Sep 17 00:00:00 2001 From: Wolfram Gloger Date: Sun, 28 Sep 2008 23:24:32 +0000 Subject: [PATCH] set video_enc->sample_aspect_ratio to fix stream copy patch by Wolfram Gloger wmglo _at_ dent.med.uni-muenchen _dot_ de Originally committed as revision 15457 to svn://svn.ffmpeg.org/ffmpeg/trunk --- ffmpeg.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ffmpeg.c b/ffmpeg.c index 73ce5162a5..f4ab88fe54 100644 --- a/ffmpeg.c +++ b/ffmpeg.c @@ -2972,6 +2972,7 @@ static void new_video_stream(AVFormatContext *oc) if (video_stream_copy) { st->stream_copy = 1; video_enc->codec_type = CODEC_TYPE_VIDEO; + video_enc->sample_aspect_ratio = st->sample_aspect_ratio = av_d2q(frame_aspect_ratio*frame_height/frame_width, 255); } else { const char *p;