Commit 1f338c07 authored by tmmm's avatar tmmm

naughty, forbidden variable declarations


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@2171 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent ed224207
...@@ -697,6 +697,7 @@ static int mov_write_packet(AVFormatContext *s, int stream_index, ...@@ -697,6 +697,7 @@ static int mov_write_packet(AVFormatContext *s, int stream_index,
MOVContext *mov = s->priv_data; MOVContext *mov = s->priv_data;
ByteIOContext *pb = &s->pb; ByteIOContext *pb = &s->pb;
AVCodecContext *enc; AVCodecContext *enc;
int cl, id;
enc = &s->streams[stream_index]->codec; enc = &s->streams[stream_index]->codec;
if (!url_is_streamed(&s->pb)) { if (!url_is_streamed(&s->pb)) {
...@@ -740,8 +741,8 @@ static int mov_write_packet(AVFormatContext *s, int stream_index, ...@@ -740,8 +741,8 @@ static int mov_write_packet(AVFormatContext *s, int stream_index,
} }
} }
int cl = trk->entry / MOV_INDEX_CLUSTER_SIZE; cl = trk->entry / MOV_INDEX_CLUSTER_SIZE;
int id = trk->entry % MOV_INDEX_CLUSTER_SIZE; id = trk->entry % MOV_INDEX_CLUSTER_SIZE;
if (trk->ents_allocated <= trk->entry) { if (trk->ents_allocated <= trk->entry) {
trk->cluster = av_realloc(trk->cluster, (cl+1)*sizeof(void*)); trk->cluster = av_realloc(trk->cluster, (cl+1)*sizeof(void*));
......
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