[FFmpeg-devel] [PATCH] avformat/yuv4mpegenc.c adjust numerator and denominator

darling.zhong dalingzhong at yeah.net
Fri Nov 8 07:12:38 EET 2019


Signed-off-by: darling.zhong <dalingzhong at yeah.net>
---
 libavformat/yuv4mpegenc.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
 mode change 100644 => 100755 libavformat/yuv4mpegenc.c


diff --git a/libavformat/yuv4mpegenc.c b/libavformat/yuv4mpegenc.c
old mode 100644
new mode 100755
index e84dbf9568..e3c5b5dd5d
--- a/libavformat/yuv4mpegenc.c
+++ b/libavformat/yuv4mpegenc.c
@@ -42,8 +42,8 @@ static int yuv4_generate_header(AVFormatContext *s, char* buf)
     field_order = st->codecpar->field_order;
 
     // TODO: should be avg_frame_rate
-    av_reduce(&raten, &rated, st->time_base.den,
-              st->time_base.num, (1UL << 31) - 1);
+    av_reduce(&raten, &rated, st->time_base.num,
+              st->time_base.den, (1UL << 31) - 1);
 
     aspectn = st->sample_aspect_ratio.num;
     aspectd = st->sample_aspect_ratio.den;
-- 
2.17.1



More information about the ffmpeg-devel mailing list