changeset 33339:f3c1141dfea7

Remove some useless code that calculates something that is then never used and some pointless ().
author reimar
date Sat, 07 May 2011 20:32:31 +0000
parents 4cf10c6071fd
children 8d137fb84699
files libmpdemux/mpeg_hdr.c
diffstat 1 files changed, 3 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/mpeg_hdr.c	Sat May 07 20:30:14 2011 +0000
+++ b/libmpdemux/mpeg_hdr.c	Sat May 07 20:32:31 2011 +0000
@@ -45,7 +45,7 @@
 
 int mp_header_process_sequence_header (mp_mpeg_header_t * picture, const unsigned char * buffer)
 {
-    int width, height;
+    int height;
 
     if ((buffer[6] & 0x20) != 0x20){
 	fprintf(stderr, "missing marker bit!\n");
@@ -54,11 +54,8 @@
 
     height = (buffer[0] << 16) | (buffer[1] << 8) | buffer[2];
 
-    picture->display_picture_width = (height >> 12);
-    picture->display_picture_height = (height & 0xfff);
-
-    width = ((height >> 12) + 15) & ~15;
-    height = ((height & 0xfff) + 15) & ~15;
+    picture->display_picture_width = height >> 12;
+    picture->display_picture_height = height & 0xfff;
 
     picture->aspect_ratio_information = buffer[3] >> 4;
     picture->frame_rate_code = buffer[3] & 15;