timecode: show frame rate when invalid.
authorClément Bœsch <clement.boesch@smartjog.com>
Tue, 31 Jul 2012 12:32:12 +0000 (14:32 +0200)
committerClément Bœsch <ubitux@gmail.com>
Wed, 1 Aug 2012 15:36:37 +0000 (17:36 +0200)
libavutil/timecode.c

index dcb93cb..c74abf2 100644 (file)
@@ -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;
     }
 }