[Ffmpeg-cvslog] r7690 - trunk/libavformat/mov.c
bcoudurier
subversion
Wed Jan 24 16:57:41 CET 2007
Author: bcoudurier
Date: Wed Jan 24 16:57:41 2007
New Revision: 7690
Modified:
trunk/libavformat/mov.c
Log:
make vars unsigned
Modified: trunk/libavformat/mov.c
==============================================================================
--- trunk/libavformat/mov.c (original)
+++ trunk/libavformat/mov.c Wed Jan 24 16:57:41 2007
@@ -1477,16 +1477,16 @@
MOVStreamContext *sc = st->priv_data;
offset_t current_offset;
int64_t current_dts = 0;
- int stts_index = 0;
- int stsc_index = 0;
- int stss_index = 0;
- int i, j, k;
+ unsigned int stts_index = 0;
+ unsigned int stsc_index = 0;
+ unsigned int stss_index = 0;
+ unsigned int i, j, k;
if (sc->sample_sizes || st->codec->codec_type == CODEC_TYPE_VIDEO || sc->dv_audio_container) {
- int keyframe, sample_size;
- int current_sample = 0;
- int stts_sample = 0;
- int distance = 0;
+ unsigned int current_sample = 0;
+ unsigned int stts_sample = 0;
+ unsigned int keyframe, sample_size;
+ unsigned int distance = 0;
st->nb_frames = sc->sample_count;
for (i = 0; i < sc->chunk_count; i++) {
@@ -1521,7 +1521,7 @@
}
}
} 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++) {
current_offset = sc->chunk_offsets[i];
More information about the ffmpeg-cvslog
mailing list