Commit d43d45d4 authored by bcoudurier's avatar bcoudurier

100l, max value for timescale is UINT16_MAX

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@20661 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 4b26ee84
...@@ -1852,7 +1852,7 @@ static int mov_write_header(AVFormatContext *s) ...@@ -1852,7 +1852,7 @@ static int mov_write_header(AVFormatContext *s)
track->sampleSize = (av_get_bits_per_sample(st->codec->codec_id) >> 3) * st->codec->channels; track->sampleSize = (av_get_bits_per_sample(st->codec->codec_id) >> 3) * st->codec->channels;
} }
if (track->mode != MODE_MOV) { if (track->mode != MODE_MOV) {
if (track->timescale > INT16_MAX) { if (track->timescale > UINT16_MAX) {
av_log(s, AV_LOG_ERROR, "track %d: output format does not support " av_log(s, AV_LOG_ERROR, "track %d: output format does not support "
"sample rate %dhz\n", i, track->timescale); "sample rate %dhz\n", i, track->timescale);
goto error; goto error;
......
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