summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>2008-04-25 12:02:01 +0000
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>2008-04-25 12:02:01 +0000
commit37ffe34bf3f5f641a5a7b1193cc8441460996e0b (patch)
treef73b047607d0c25c1548958092c0e75167c020cc
parent1c126b4f381b11237a861e2c93537c3bea3c953d (diff)
align and remove useless braces
Originally committed as revision 12952 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavformat/mov.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/libavformat/mov.c b/libavformat/mov.c
index f6a7ffe5dd..167e405dfa 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -316,7 +316,7 @@ static int mov_read_hdlr(MOVContext *c, ByteIOContext *pb, MOV_atom_t atom)
*((char *)&type), ((char *)&type)[1], ((char *)&type)[2], ((char *)&type)[3]);
if(!ctype)
c->isom = 1;
- if (type == MKTAG('v','i','d','e'))
+ if (type == MKTAG('v','i','d','e'))
st->codec->codec_type = CODEC_TYPE_VIDEO;
else if(type == MKTAG('s','o','u','n'))
st->codec->codec_type = CODEC_TYPE_AUDIO;
@@ -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;