Mercurial > libavformat.hg
comparison mov.c @ 2822:bdb887c3e9e9 libavformat
cosmetics: func -> parse, remove useless parenthesis
author | bcoudurier |
---|---|
date | Sun, 16 Dec 2007 18:26:34 +0000 |
parents | 5a12b619e974 |
children | 3f15b52fe817 |
comparison
equal
deleted
inserted
replaced
2821:5a12b619e974 | 2822:bdb887c3e9e9 |
---|---|
136 -1: error occured, exit | 136 -1: error occured, exit |
137 */ | 137 */ |
138 /* links atom IDs to parse functions */ | 138 /* links atom IDs to parse functions */ |
139 typedef struct MOVParseTableEntry { | 139 typedef struct MOVParseTableEntry { |
140 uint32_t type; | 140 uint32_t type; |
141 int (*func)(MOVContext *ctx, ByteIOContext *pb, MOV_atom_t atom); | 141 int (*parse)(MOVContext *ctx, ByteIOContext *pb, MOV_atom_t atom); |
142 } MOVParseTableEntry; | 142 } MOVParseTableEntry; |
143 | 143 |
144 static const MOVParseTableEntry mov_default_parse_table[]; | 144 static const MOVParseTableEntry mov_default_parse_table[]; |
145 | 145 |
146 static int mov_read_default(MOVContext *c, ByteIOContext *pb, MOV_atom_t atom) | 146 static int mov_read_default(MOVContext *c, ByteIOContext *pb, MOV_atom_t atom) |
186 if (mov_default_parse_table[i].type == 0) { /* skip leaf atoms data */ | 186 if (mov_default_parse_table[i].type == 0) { /* skip leaf atoms data */ |
187 url_fskip(pb, a.size); | 187 url_fskip(pb, a.size); |
188 } else { | 188 } else { |
189 offset_t start_pos = url_ftell(pb); | 189 offset_t start_pos = url_ftell(pb); |
190 int64_t left; | 190 int64_t left; |
191 err = (mov_default_parse_table[i].func)(c, pb, a); | 191 err = mov_default_parse_table[i].parse(c, pb, a); |
192 if (c->found_moov && c->found_mdat) | 192 if (c->found_moov && c->found_mdat) |
193 break; | 193 break; |
194 left = a.size - url_ftell(pb) + start_pos; | 194 left = a.size - url_ftell(pb) + start_pos; |
195 if (left > 0) /* skip garbage at atom end */ | 195 if (left > 0) /* skip garbage at atom end */ |
196 url_fskip(pb, left); | 196 url_fskip(pb, left); |