[FFmpeg-cvslog] timecode: show frame rate when invalid.

Clément Bœsch git at videolan.org
Wed Aug 1 17:36:51 CEST 2012


ffmpeg | branch: master | Clément Bœsch <clement.boesch at smartjog.com> | Tue Jul 31 14:32:12 2012 +0200| [1f68be4764adb0ee82ac0ca962ff467142ee2af9] | committer: Clément Bœsch

timecode: show frame rate when invalid.

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

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

diff --git a/libavutil/timecode.c b/libavutil/timecode.c
index dcb93cb..c74abf2 100644
--- a/libavutil/timecode.c
+++ b/libavutil/timecode.c
@@ -164,7 +164,8 @@ static int check_timecode(void *log_ctx, AVTimecode *tc)
     case 60: return  0;
 
     default:
-        av_log(log_ctx, AV_LOG_ERROR, "Timecode frame rate not supported\n");
+        av_log(log_ctx, AV_LOG_ERROR, "Timecode frame rate %d/%d not supported\n",
+               tc->rate.num, tc->rate.den);
         return AVERROR_PATCHWELCOME;
     }
 }



More information about the ffmpeg-cvslog mailing list