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

Wolfram Gloger wmglo
Sat Sep 20 23:28:16 CEST 2008


> iam ok with this if it has \n after the =3D

Here you go...

Regards,
Wolfram.

--- trunk/ffmpeg.c	Fri Sep 19 10:46:58 2008
+++ ffmpeg-wg/ffmpeg.c	Sat Sep 20 23:26:34 2008
@@ -3021,7 +3021,8 @@
     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