summaryrefslogtreecommitdiff
path: root/libavformat
diff options
context:
space:
mode:
authorBaptiste Coudurier <baptiste.coudurier@smartjog.com>2006-02-18 09:08:34 +0000
committerMichael Niedermayer <michaelni@gmx.at>2006-02-18 09:08:34 +0000
commit73920f079ad26b5855fbb7674e3fb99b2903be0d (patch)
treeb5e7c74dc9359f34aa9c3e63075602b649c3c2c9 /libavformat
parentbd12d3e9dc0fe9470d078c5433c6a512108d0499 (diff)
simplify mov_read_hdlr patch by (Baptiste COUDURIER <baptiste.coudurier 0 smartjog o com>)
Originally committed as revision 5033 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/mov.c19
1 files changed, 6 insertions, 13 deletions
diff --git a/libavformat/mov.c b/libavformat/mov.c
index 6da7c14c76..230860ba41 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -517,21 +517,14 @@ static int mov_read_hdlr(MOVContext *c, ByteIOContext *pb, MOV_atom_t atom)
dprintf("ctype= %c%c%c%c (0x%08lx)\n", *((char *)&ctype), ((char *)&ctype)[1], ((char *)&ctype)[2], ((char *)&ctype)[3], (long) ctype);
dprintf("stype= %c%c%c%c\n", *((char *)&type), ((char *)&type)[1], ((char *)&type)[2], ((char *)&type)[3]);
- if(ctype == MKTAG('m', 'h', 'l', 'r')) { /* MOV */
- /* helps parsing the string hereafter... */
+ if(ctype == MKTAG('m', 'h', 'l', 'r')) /* MOV */
c->mp4 = 0;
- 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;
- } else if(ctype == 0) { /* MP4 */
- /* helps parsing the string hereafter... */
+ else if(ctype == 0)
c->mp4 = 1;
- 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;
- }
+ 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;
get_be32(pb); /* component manufacture */
get_be32(pb); /* component flags */
get_be32(pb); /* component flags mask */