Commit 9300e132 authored by bcoudurier's avatar bcoudurier

make vars unsigned

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@7690 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 75c513aa
...@@ -1477,16 +1477,16 @@ static void mov_build_index(MOVContext *mov, AVStream *st) ...@@ -1477,16 +1477,16 @@ static void mov_build_index(MOVContext *mov, AVStream *st)
MOVStreamContext *sc = st->priv_data; MOVStreamContext *sc = st->priv_data;
offset_t current_offset; offset_t current_offset;
int64_t current_dts = 0; int64_t current_dts = 0;
int stts_index = 0; unsigned int stts_index = 0;
int stsc_index = 0; unsigned int stsc_index = 0;
int stss_index = 0; unsigned int stss_index = 0;
int i, j, k; unsigned int i, j, k;
if (sc->sample_sizes || st->codec->codec_type == CODEC_TYPE_VIDEO || sc->dv_audio_container) { if (sc->sample_sizes || st->codec->codec_type == CODEC_TYPE_VIDEO || sc->dv_audio_container) {
int keyframe, sample_size; unsigned int current_sample = 0;
int current_sample = 0; unsigned int stts_sample = 0;
int stts_sample = 0; unsigned int keyframe, sample_size;
int distance = 0; unsigned int distance = 0;
st->nb_frames = sc->sample_count; st->nb_frames = sc->sample_count;
for (i = 0; i < sc->chunk_count; i++) { for (i = 0; i < sc->chunk_count; i++) {
...@@ -1521,7 +1521,7 @@ static void mov_build_index(MOVContext *mov, AVStream *st) ...@@ -1521,7 +1521,7 @@ static void mov_build_index(MOVContext *mov, AVStream *st)
} }
} }
} else { /* read whole chunk */ } else { /* read whole chunk */
int chunk_samples, chunk_size, chunk_duration; unsigned int chunk_samples, chunk_size, chunk_duration;
for (i = 0; i < sc->chunk_count; i++) { for (i = 0; i < sc->chunk_count; i++) {
current_offset = sc->chunk_offsets[i]; current_offset = sc->chunk_offsets[i];
......
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