[FFmpeg-cvslog] timecode: Do not fail for non-standard framerates

Vittorio Giovara git at videolan.org
Mon Oct 26 15:12:16 CET 2015


ffmpeg | branch: master | Vittorio Giovara <vittorio.giovara at gmail.com> | Mon Oct 26 14:44:43 2015 +0100| [8c2214822052c4d5ccbfcbd2ea4781298e6e8e8d] | committer: Michael Niedermayer

timecode: Do not fail for non-standard framerates

Instead just warn, and use the parse fps normally.

Signed-off-by: Vittorio Giovara <vittorio.giovara at gmail.com>

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

 libavutil/timecode.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/libavutil/timecode.c b/libavutil/timecode.c
index 1dfd040..073b82f 100644
--- a/libavutil/timecode.c
+++ b/libavutil/timecode.c
@@ -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;
 }



More information about the ffmpeg-cvslog mailing list