[FFmpeg-cvslog] r20661 - trunk/libavformat/movenc.c

bcoudurier subversion
Sun Nov 29 19:26:52 CET 2009


Author: bcoudurier
Date: Sun Nov 29 19:26:51 2009
New Revision: 20661

Log:
100l, max value for timescale is UINT16_MAX

Modified:
   trunk/libavformat/movenc.c

Modified: trunk/libavformat/movenc.c
==============================================================================
--- trunk/libavformat/movenc.c	Sun Nov 29 19:02:19 2009	(r20660)
+++ trunk/libavformat/movenc.c	Sun Nov 29 19:26:51 2009	(r20661)
@@ -1852,7 +1852,7 @@ static int mov_write_header(AVFormatCont
                 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;



More information about the ffmpeg-cvslog mailing list