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

Submitted by darling.zhong on Nov. 8, 2019, 5:12 a.m.

Details

Message ID 1f0f9d9a.f03c2.16e496dbb04.Coremail.dalingzhong@yeah.net
State New
Headers show

Commit Message

darling.zhong Nov. 8, 2019, 5:12 a.m.
Signed-off-by: darling.zhong <dalingzhong@yeah.net>
---
 libavformat/yuv4mpegenc.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
 mode change 100644 => 100755 libavformat/yuv4mpegenc.c

Patch hide | download patch | download mbox

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;