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

Wolfram Gloger wmglo
Sat Sep 20 18:10:48 CEST 2008


Hi,

ffmpeg video stream copy was broken by the r15367
libavformat/utils.c change.

Regards,
Wolfram.

--- trunk/ffmpeg.c	Fri Sep 19 10:46:58 2008
+++ ffmpeg-wg/ffmpeg.c	Sat Sep 20 17:53:53 2008
@@ -3021,7 +3021,7 @@
     if (video_stream_copy) {
         st->stream_copy = 1;
         video_enc->codec_type = CODEC_TYPE_VIDEO;
-        st->sample_aspect_ratio = av_d2q(frame_aspect_ratio*frame_height/frame_width, 255);
+        video_enc->sample_aspect_ratio = st->sample_aspect_ratio = av_d2q(frame_aspect_ratio*frame_height/frame_width, 255);
     } else {
         const char *p;
         int i;




More information about the ffmpeg-devel mailing list