Mercurial > libavformat.hg
changeset 202:d755254e8797 libavformat
naughty, forbidden variable declarations
author | tmmm |
---|---|
date | Wed, 27 Aug 2003 01:26:14 +0000 |
parents | 85def00971c3 |
children | 184d22d04c84 |
files | movenc.c |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/movenc.c Tue Aug 26 20:23:13 2003 +0000 +++ b/movenc.c Wed Aug 27 01:26:14 2003 +0000 @@ -697,6 +697,7 @@ 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 @@ } } - 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*));