diff options
author | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2007-06-06 13:21:50 +0000 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2007-06-06 13:21:50 +0000 |
commit | 911f9b714e5f54ceea0dd8b364a107d814896040 (patch) | |
tree | 6261e30b96378cd3664ec61cc54d6dca8463c3b2 /libavformat/movenc.c | |
parent | 160228f894569e1fcdec824cb68f285d833feee0 (diff) | |
download | ffmpeg-911f9b714e5f54ceea0dd8b364a107d814896040.tar.gz |
warn user if video codec timebase is very high
Originally committed as revision 9232 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/movenc.c')
-rw-r--r-- | libavformat/movenc.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libavformat/movenc.c b/libavformat/movenc.c index 8f4f792c3c..293b3b3f33 100644 --- a/libavformat/movenc.c +++ b/libavformat/movenc.c @@ -1488,6 +1488,11 @@ static int mov_write_header(AVFormatContext *s) track->tag = mov_find_video_codec_tag(s, track); track->timescale = st->codec->time_base.den; av_set_pts_info(st, 64, 1, st->codec->time_base.den); + if (track->timescale > 100000) + av_log(NULL, AV_LOG_WARNING, + "WARNING codec timebase is very high. If duration is too long,\n" + "file may not be playable by quicktime. Specify a shorter timebase\n" + "or choose different container.\n"); }else if(st->codec->codec_type == CODEC_TYPE_AUDIO){ track->tag = mov_find_audio_codec_tag(s, track); track->timescale = st->codec->sample_rate; |