# HG changeset patch # User reimar # Date 1319473330 0 # Node ID a252f21a07e31caaa3ca097b2e4d01fe684a9633 # Parent bf6f772e609df4697741a56587ad1d0ea36c5fd4 Remove unused code. Also gets rid of compiler warning about variables being assigned but never used. diff -r bf6f772e609d -r a252f21a07e3 libmpdemux/mpeg_hdr.c --- 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)) {