Mercurial > mplayer.hg
comparison libmpdemux/mpeg_hdr.c @ 34160:a252f21a07e3
Remove unused code.
Also gets rid of compiler warning about variables being assigned
but never used.
author | reimar |
---|---|
date | Mon, 24 Oct 2011 16:22:10 +0000 |
parents | bf6f772e609d |
children | 1495455e6d22 |
comparison
equal
deleted
inserted
replaced
34159:bf6f772e609d | 34160:a252f21a07e3 |
---|---|
204 return n; | 204 return n; |
205 } | 205 } |
206 | 206 |
207 int mp4_header_process_vol(mp_mpeg_header_t * picture, const unsigned char * buffer) | 207 int mp4_header_process_vol(mp_mpeg_header_t * picture, const unsigned char * buffer) |
208 { | 208 { |
209 unsigned int n, aspect=0, aspectw=0, aspecth=0, x=1, v; | 209 unsigned int n, aspect, x=1, v; |
210 | 210 |
211 //begins with 0x0000012x | 211 //begins with 0x0000012x |
212 picture->fps = 0; | 212 picture->fps = 0; |
213 picture->timeinc_bits = picture->timeinc_resolution = picture->timeinc_unit = 0; | 213 picture->timeinc_bits = picture->timeinc_resolution = picture->timeinc_unit = 0; |
214 n = 9; | 214 n = 9; |
216 n += 7; | 216 n += 7; |
217 n++; | 217 n++; |
218 aspect=getbits(buffer, n, 4); | 218 aspect=getbits(buffer, n, 4); |
219 n += 4; | 219 n += 4; |
220 if(aspect == 0x0f) { | 220 if(aspect == 0x0f) { |
221 aspectw = getbits(buffer, n, 8); | 221 // custom aspect w and h, 8 bit each |
222 n += 8; | 222 n += 16; |
223 aspecth = getbits(buffer, n, 8); | |
224 n += 8; | |
225 } | 223 } |
226 | 224 |
227 if(getbits(buffer, n, 1)) { | 225 if(getbits(buffer, n, 1)) { |
228 n += 4; | 226 n += 4; |
229 if(getbits(buffer, n, 1)) | 227 if(getbits(buffer, n, 1)) |