[FFmpeg-cvslog] avformat/nutdec: fix obvious typo

Paul B Mahol git at videolan.org
Fri Dec 14 11:46:57 EET 2018


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Thu Dec 13 23:17:00 2018 +0100| [f2179afb01a35cce6189c878ae1ddfc84895676c] | committer: Paul B Mahol

avformat/nutdec: fix obvious typo

Fixes #6742.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f2179afb01a35cce6189c878ae1ddfc84895676c
---

 libavformat/nutdec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/nutdec.c b/libavformat/nutdec.c
index 27440c88d4..9910ffe936 100644
--- a/libavformat/nutdec.c
+++ b/libavformat/nutdec.c
@@ -582,7 +582,7 @@ static int decode_info_header(NUTContext *nut)
             if (stream_id_plus1 && !strcmp(name, "r_frame_rate")) {
                 sscanf(str_value, "%d/%d", &st->r_frame_rate.num, &st->r_frame_rate.den);
                 if (st->r_frame_rate.num >= 1000LL*st->r_frame_rate.den ||
-                    st->r_frame_rate.num < 0 || st->r_frame_rate.num < 0)
+                    st->r_frame_rate.num < 0 || st->r_frame_rate.den < 0)
                     st->r_frame_rate.num = st->r_frame_rate.den = 0;
                 continue;
             }



More information about the ffmpeg-cvslog mailing list