]> git.sesse.net Git - ffmpeg/commitdiff
timecode: Do not fail for non-standard framerates
authorVittorio Giovara <vittorio.giovara@gmail.com>
Mon, 26 Oct 2015 13:44:43 +0000 (14:44 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 26 Oct 2015 14:05:05 +0000 (15:05 +0100)
Instead just warn, and use the parse fps normally.

Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
libavutil/timecode.c

index 1dfd04086813078f630ca143f4a1e729d3a28027..073b82f766c1affd5628cf56d3298df638200057 100644 (file)
@@ -160,9 +160,8 @@ static int check_timecode(void *log_ctx, AVTimecode *tc)
         return AVERROR(EINVAL);
     }
     if (check_fps(tc->fps) < 0) {
-        av_log(log_ctx, AV_LOG_ERROR, "Timecode frame rate %d/%d not supported\n",
+        av_log(log_ctx, AV_LOG_WARNING, "Using non-standard frame rate %d/%d\n",
                tc->rate.num, tc->rate.den);
-        return AVERROR_PATCHWELCOME;
     }
     return 0;
 }