]> Creatis software - gdcm.git/blobdiff - src/gdcmmpeg2/src/mpeg2dec/gethdr.c
New method SerieHelper::AddSeriesDetail() to allow user to specifiy
[gdcm.git] / src / gdcmmpeg2 / src / mpeg2dec / gethdr.c
index 2a204f158823cb4c4de57ebc3cb3f15384304d2c..c128f010d79f756c05183595f380ef4c24f417d2 100644 (file)
@@ -27,8 +27,6 @@
  *
  */
 
-#include <stdio.h>
-
 #include "config.h"
 #include "global.h"
 
@@ -330,9 +328,9 @@ int slice_header()
 {
   int slice_vertical_position_extension;
   int quantizer_scale_code;
-  int slice_picture_id_enable = 0;
-  int slice_picture_id = 0;
-  int extra_information_slice = 0;
+  int slice_picture_id_enable;
+  int slice_picture_id;
+  int extra_information_slice;
 #ifdef VERBOSE
   int pos;
 
@@ -357,8 +355,11 @@ int slice_header()
 
     slice_picture_id_enable = Get_Bits(1);
     slice_picture_id = Get_Bits(6);
+    (void)slice_picture_id_enable;
+    (void)slice_picture_id;
 
     extra_information_slice = extra_bit_information();
+    (void)extra_information_slice;
   }
   else
     ld->intra_slice = 0;
@@ -983,12 +984,13 @@ static int extra_bit_information()
 /* Purpose: this function is mainly designed to aid in bitstream conformance
    testing.  A simple Flush_Buffer(1) would do */
 void marker_bit(text)
-char *text;
+const char *text;
 {
   int marker;
   (void)text;
 
   marker = Get_Bits(1);
+  (void)marker;
 
 #ifdef VERIFY  
   if(!marker)
@@ -1027,6 +1029,7 @@ static void copyright_extension()
   
   /* reserved */
   reserved_data = Get_Bits(7);
+  (void)reserved_data;
 
   marker_bit("copyright_extension(), first marker bit");
   copyright_number_1 =   Get_Bits(20);