Commit b0bb92d7 authored by bcoudurier's avatar bcoudurier

warn user if video codec timebase is very high

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@9232 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 129994f3
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment