diff options
author | Wolfram Gloger <wmglo@dent.med.uni-muenchen.de> | 2008-09-28 23:24:32 +0000 |
---|---|---|
committer | Aurelien Jacobs <aurel@gnuage.org> | 2008-09-28 23:24:32 +0000 |
commit | 143df827893bccd41035569a9dddd56a8e0226c3 (patch) | |
tree | 6273aa3ebc49565dedf4becefd08b4eeb2c3e91e /ffmpeg.c | |
parent | ed16f91f26aeb3156d4d130b7abacdd49f23a04c (diff) | |
download | ffmpeg-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.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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; |