Mercurial > libavformat.hg
changeset 2149:d5e89ef58c3b libavformat
warn user if video codec timebase is very high
author | bcoudurier |
---|---|
date | Wed, 06 Jun 2007 13:21:50 +0000 |
parents | 5efd0362497c |
children | 0948a0b036e2 |
files | movenc.c |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/movenc.c Mon Jun 04 23:07:27 2007 +0000 +++ b/movenc.c Wed Jun 06 13:21:50 2007 +0000 @@ -1488,6 +1488,11 @@ 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;