[FFmpeg-devel] [PATCH 2/7] nutdec: Fix repeated condition
Mark Thompson
sw at jkqxz.net
Wed Oct 18 01:11:54 EEST 2017
Fixes #6742.
---
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;
}
--
2.11.0
More information about the ffmpeg-devel
mailing list