Mercurial > mplayer.hg
changeset 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 | 64a0c61c6f18 |
files | libmpdemux/mpeg_hdr.c |
diffstat | 1 files changed, 3 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpdemux/mpeg_hdr.c Mon Oct 24 16:20:00 2011 +0000 +++ b/libmpdemux/mpeg_hdr.c Mon Oct 24 16:22:10 2011 +0000 @@ -206,7 +206,7 @@ int mp4_header_process_vol(mp_mpeg_header_t * picture, const unsigned char * buffer) { - unsigned int n, aspect=0, aspectw=0, aspecth=0, x=1, v; + unsigned int n, aspect, x=1, v; //begins with 0x0000012x picture->fps = 0; @@ -218,10 +218,8 @@ aspect=getbits(buffer, n, 4); n += 4; if(aspect == 0x0f) { - aspectw = getbits(buffer, n, 8); - n += 8; - aspecth = getbits(buffer, n, 8); - n += 8; + // custom aspect w and h, 8 bit each + n += 16; } if(getbits(buffer, n, 1)) {