[FFmpeg-devel] [PATCH] fix stream copy sample_aspect_ratio

Wolfram Gloger wmglo
Sat Sep 27 14:26:16 CEST 2008


> no this mixes a cosmetic change with a fuctional one, what i meant was
> adding one line is enough, there is no need to change the existing line.

Oops, I see.

Regards,
Wolfram.

--- trunk/ffmpeg.c	Fri Sep 26 09:33:03 2008
+++ ffmpeg-wg/ffmpeg.c	Sat Sep 27 14:24:25 2008
@@ -3025,6 +3025,7 @@
     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;




More information about the ffmpeg-devel mailing list