From ed14b7242ae51d74a64eed7687c8680f7882548b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20B=C5=93sch?= Date: Tue, 3 Jan 2012 17:01:24 +0100 Subject: [PATCH] timecode: more tolerant frame rate check for drop flag. This fixes some timecode probing in MOV. --- libavcodec/timecode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/timecode.c b/libavcodec/timecode.c index 00b40b7bcf..420b276c20 100644 --- a/libavcodec/timecode.c +++ b/libavcodec/timecode.c @@ -64,7 +64,7 @@ int avpriv_check_timecode_rate(void *avcl, AVRational rate, int drop) return -1; } fps = (rate.num + rate.den/2) / rate.den; - if (drop && (rate.den != 1001 || fps != 30)) { + if (drop && fps != 30) { av_log(avcl, AV_LOG_ERROR, "Drop frame is only allowed with 30000/1001 FPS\n"); return -2; }