changeset 5394:896dbdababcb libavformat

100l, max value for timescale is UINT16_MAX
author bcoudurier
date Sun, 29 Nov 2009 18:26:51 +0000
parents a3853508bb5c
children af65f63f2063
files movenc.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/movenc.c	Sun Nov 29 02:46:49 2009 +0000
+++ b/movenc.c	Sun Nov 29 18:26:51 2009 +0000
@@ -1852,7 +1852,7 @@
                 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;