[SCM] libav/experimental: 100l, max value for timescale is UINT16_MAX

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 16:55:08 UTC 2013


The following commit has been merged in the experimental branch:
commit 1bd26e51f350b20d417eec57e8185c3ad83589c6
Author: Baptiste Coudurier <baptiste.coudurier at gmail.com>
Date:   Sun Nov 29 18:26:51 2009 +0000

    100l, max value for timescale is UINT16_MAX
    
    Originally committed as revision 20661 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/libavformat/movenc.c b/libavformat/movenc.c
index 2ed2c9b..fe26cf0 100644
--- a/libavformat/movenc.c
+++ b/libavformat/movenc.c
@@ -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;
             }
             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 "
                            "sample rate %dhz\n", i, track->timescale);
                     goto error;

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list