Commit 0aba6a4c authored by aurel's avatar aurel

set video_enc->sample_aspect_ratio to fix stream copy

patch by Wolfram Gloger  wmglo _at_ dent.med.uni-muenchen _dot_ de


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@15457 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 25ff5bff
...@@ -2972,6 +2972,7 @@ static void new_video_stream(AVFormatContext *oc) ...@@ -2972,6 +2972,7 @@ static void new_video_stream(AVFormatContext *oc)
if (video_stream_copy) { if (video_stream_copy) {
st->stream_copy = 1; st->stream_copy = 1;
video_enc->codec_type = CODEC_TYPE_VIDEO; 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); st->sample_aspect_ratio = av_d2q(frame_aspect_ratio*frame_height/frame_width, 255);
} else { } else {
const char *p; const char *p;
......
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