align and remove useless braces

Originally committed as revision 12952 to svn://svn.ffmpeg.org/ffmpeg/trunk
pull/126/head
Baptiste Coudurier 17 years ago
parent 1c126b4f38
commit 37ffe34bf3
  1. 12
      libavformat/mov.c

@ -629,15 +629,13 @@ static int mov_read_stco(MOVContext *c, ByteIOContext *pb, MOV_atom_t atom)
sc->chunk_offsets = av_malloc(entries * sizeof(int64_t));
if (!sc->chunk_offsets)
return -1;
if (atom.type == MKTAG('s','t','c','o')) {
for(i=0; i<entries; i++) {
if (atom.type == MKTAG('s','t','c','o'))
for(i=0; i<entries; i++)
sc->chunk_offsets[i] = get_be32(pb);
}
} else if (atom.type == MKTAG('c','o','6','4')) {
for(i=0; i<entries; i++) {
else if (atom.type == MKTAG('c','o','6','4'))
for(i=0; i<entries; i++)
sc->chunk_offsets[i] = get_be64(pb);
}
} else
else
return -1;
return 0;

Loading…
Cancel
Save