aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>2008-04-25 16:47:22 +0000
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>2008-04-25 16:47:22 +0000
commitbaf9fb32c02512c6bd647e9f4f2c72830769fb12 (patch)
tree1d5acdf30c0378ed0b9f1b032c9f2fd782a80ba4
parent3b4eccabaea5b0b7634509c21c56d2730780375e (diff)
downloadffmpeg-baf9fb32c02512c6bd647e9f4f2c72830769fb12.tar.gz
move vars decls where vars are used
Originally committed as revision 12970 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavformat/mov.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/libavformat/mov.c b/libavformat/mov.c
index 64bb890076..5182c7983f 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -669,12 +669,7 @@ static int mov_read_stsd(MOVContext *c, ByteIOContext *pb, MOV_atom_t atom)
{
AVStream *st = c->fc->streams[c->fc->nb_streams-1];
MOVStreamContext *sc = st->priv_data;
- int entries, frames_per_sample;
- uint32_t format;
- uint8_t codec_name[32];
- unsigned int color_depth;
- int color_greyscale;
- int j, pseudo_stream_id;
+ int j, entries, pseudo_stream_id;
get_byte(pb); /* version */
get_be24(pb); /* flags */
@@ -688,7 +683,7 @@ static int mov_read_stsd(MOVContext *c, ByteIOContext *pb, MOV_atom_t atom)
MOV_atom_t a = { 0, 0, 0 };
offset_t start_pos = url_ftell(pb);
int size = get_be32(pb); /* size */
- format = get_le32(pb); /* data format */
+ uint32_t format = get_le32(pb); /* data format */
get_be32(pb); /* reserved */
get_be16(pb); /* reserved */
@@ -733,6 +728,11 @@ static int mov_read_stsd(MOVContext *c, ByteIOContext *pb, MOV_atom_t atom)
(format >> 24) & 0xff, st->codec->codec_type);
if(st->codec->codec_type==CODEC_TYPE_VIDEO) {
+ uint8_t codec_name[32];
+ unsigned int color_depth;
+ int color_greyscale;
+ int frames_per_sample;
+
st->codec->codec_id = id;
get_be16(pb); /* version */
get_be16(pb); /* revision level */