diff options
author | Gyan Doshi <gyandoshi@gmail.com> | 2017-11-05 21:29:22 +0530 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2017-11-10 00:53:11 +0100 |
commit | 84556ef05963138cbc39fa1a39b790dffe15ffe8 (patch) | |
tree | e90909b42e24e42f024a045afbf92600d69066b0 /libavutil/timecode.c | |
parent | 1b323c3f9c8997c4df8e843cb065f10d097ae18c (diff) | |
download | ffmpeg-streaming-84556ef05963138cbc39fa1a39b790dffe15ffe8.zip ffmpeg-streaming-84556ef05963138cbc39fa1a39b790dffe15ffe8.tar.gz |
lavu/timecode: clarify error msg for timecode_rate
The user-supplied value for timecode_rate in drawtext is rounded
to nearest integer. So, a supplied value of 0.49 or lower is rounded to 0.
This throws a misleading error message which says "Timecode frame rate must be
specified". Changed message to account for values under one.
Also noted supported framerates for drop TC.
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavutil/timecode.c')
-rw-r--r-- | libavutil/timecode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavutil/timecode.c b/libavutil/timecode.c index c0c67c8..e9d8504 100644 --- a/libavutil/timecode.c +++ b/libavutil/timecode.c @@ -155,7 +155,7 @@ static int check_fps(int fps) static int check_timecode(void *log_ctx, AVTimecode *tc) { if ((int)tc->fps <= 0) { - av_log(log_ctx, AV_LOG_ERROR, "Timecode frame rate must be specified\n"); + av_log(log_ctx, AV_LOG_ERROR, "Valid timecode frame rate must be specified. Minimum value is 1\n"); return AVERROR(EINVAL); } if ((tc->flags & AV_TIMECODE_FLAG_DROPFRAME) && tc->fps != 30 && tc->fps != 60) { |