avformat/nutdec: fix obvious typo
authorPaul B Mahol <onemda@gmail.com>
Thu, 13 Dec 2018 22:17:00 +0000 (23:17 +0100)
committerPaul B Mahol <onemda@gmail.com>
Fri, 14 Dec 2018 09:45:32 +0000 (10:45 +0100)
Fixes #6742.

libavformat/nutdec.c

index 27440c8..9910ffe 100644 (file)
@@ -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;
             }