diff options
author | Mike Melanson <mike@multimedia.cx> | 2003-08-27 01:26:14 +0000 |
---|---|---|
committer | Mike Melanson <mike@multimedia.cx> | 2003-08-27 01:26:14 +0000 |
commit | 1a31840ceaca001436de2640ca352389916fe531 (patch) | |
tree | cb73361f96f239e6f2158a1d89c1392337e2fbbb | |
parent | 2d5e962b06bbdb6b2f1252435020e569189839d1 (diff) | |
download | ffmpeg-1a31840ceaca001436de2640ca352389916fe531.tar.gz |
naughty, forbidden variable declarations
Originally committed as revision 2171 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavformat/movenc.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libavformat/movenc.c b/libavformat/movenc.c index ca03c4a64a..3ae701bf35 100644 --- a/libavformat/movenc.c +++ b/libavformat/movenc.c @@ -697,6 +697,7 @@ static int mov_write_packet(AVFormatContext *s, int stream_index, MOVContext *mov = s->priv_data; ByteIOContext *pb = &s->pb; AVCodecContext *enc; + int cl, id; enc = &s->streams[stream_index]->codec; if (!url_is_streamed(&s->pb)) { @@ -740,8 +741,8 @@ static int mov_write_packet(AVFormatContext *s, int stream_index, } } - int cl = trk->entry / MOV_INDEX_CLUSTER_SIZE; - int id = trk->entry % MOV_INDEX_CLUSTER_SIZE; + cl = trk->entry / MOV_INDEX_CLUSTER_SIZE; + id = trk->entry % MOV_INDEX_CLUSTER_SIZE; if (trk->ents_allocated <= trk->entry) { trk->cluster = av_realloc(trk->cluster, (cl+1)*sizeof(void*)); |