[MPlayer-cvslog] r33426 - trunk/libmpdemux/mpeg_hdr.c

reimar subversion at mplayerhq.hu
Sat May 7 22:32:31 CEST 2011


Author: reimar
Date: Sat May  7 22:32:31 2011
New Revision: 33426

Log:
Remove some useless code that calculates something
that is then never used and some pointless ().

Modified:
   trunk/libmpdemux/mpeg_hdr.c

Modified: trunk/libmpdemux/mpeg_hdr.c
==============================================================================
--- trunk/libmpdemux/mpeg_hdr.c	Sat May  7 22:30:14 2011	(r33425)
+++ trunk/libmpdemux/mpeg_hdr.c	Sat May  7 22:32:31 2011	(r33426)
@@ -45,7 +45,7 @@ static float frameratecode2framerate[16]
 
 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 @@ int mp_header_process_sequence_header (m
 
     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;


More information about the MPlayer-cvslog mailing list