aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil/timecode.c
diff options
context:
space:
mode:
authorJason <jason@cpcweb.com>2013-01-22 12:31:46 -0500
committerMichael Niedermayer <michaelni@gmx.at>2013-01-24 21:06:24 +0100
commita717fa84ede90b7323db2a64f9309da31b0d378f (patch)
tree9bad18ccfa86a79afd656212aa2aaada0d1935f8 /libavutil/timecode.c
parent55d66b27902d3f566cd6cf6f08d4233dcdc338f5 (diff)
downloadffmpeg-a717fa84ede90b7323db2a64f9309da31b0d378f.tar.gz
lavu/timecode: Allow drop frame mode for 60000/1001 fps
Reviewed-by: Matthieu Bouron <matthieu.bouron@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavutil/timecode.c')
-rw-r--r--libavutil/timecode.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavutil/timecode.c b/libavutil/timecode.c
index 77d828d56f..5f9ebc29f9 100644
--- a/libavutil/timecode.c
+++ b/libavutil/timecode.c
@@ -152,8 +152,8 @@ static int check_timecode(void *log_ctx, AVTimecode *tc)
av_log(log_ctx, AV_LOG_ERROR, "Timecode frame rate must be specified\n");
return AVERROR(EINVAL);
}
- if ((tc->flags & AV_TIMECODE_FLAG_DROPFRAME) && tc->fps != 30) {
- av_log(log_ctx, AV_LOG_ERROR, "Drop frame is only allowed with 30000/1001 FPS\n");
+ if ((tc->flags & AV_TIMECODE_FLAG_DROPFRAME) && tc->fps != 30 && tc->fps != 60) {
+ av_log(log_ctx, AV_LOG_ERROR, "Drop frame is only allowed with 30000/1001 or 60000/1001 FPS\n");
return AVERROR(EINVAL);
}
if (check_fps(tc->fps) < 0) {