aboutsummaryrefslogtreecommitdiffstats
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorWolfram Gloger <wmglo@dent.med.uni-muenchen.de>2008-09-28 23:24:32 +0000
committerAurelien Jacobs <aurel@gnuage.org>2008-09-28 23:24:32 +0000
commit143df827893bccd41035569a9dddd56a8e0226c3 (patch)
tree6273aa3ebc49565dedf4becefd08b4eeb2c3e91e /ffmpeg.c
parented16f91f26aeb3156d4d130b7abacdd49f23a04c (diff)
downloadffmpeg-143df827893bccd41035569a9dddd56a8e0226c3.tar.gz
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
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 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;