OSDN Git Service

mpeg4videodec: remove a write-only variable from MpegEncContext
authorAnton Khirnov <anton@khirnov.net>
Tue, 26 Nov 2013 13:45:14 +0000 (14:45 +0100)
committerAnton Khirnov <anton@khirnov.net>
Fri, 29 Nov 2013 16:35:57 +0000 (17:35 +0100)
libavcodec/mpeg4videodec.c
libavcodec/mpegvideo.h

index b1bcd38..32ffbb8 100644 (file)
@@ -1962,7 +1962,7 @@ no_cplx_est:
             int v_sampling_factor_n;
             int v_sampling_factor_m;
 
-            s->hierachy_type = get_bits1(gb);
+            skip_bits1(gb);    // hierarchy_type
             skip_bits(gb, 4);  /* ref_layer_id */
             skip_bits1(gb);    /* ref_layer_sampling_dir */
             h_sampling_factor_n = get_bits(gb, 5);
index 8dbded9..97a3a72 100644 (file)
@@ -590,7 +590,6 @@ typedef struct MpegEncContext {
     int quant_precision;
     int quarter_sample;              ///< 1->qpel, 0->half pel ME/MC
     int scalability;
-    int hierachy_type;
     int enhancement_type;
     int aspect_ratio_info; //FIXME remove
     int sprite_warping_accuracy;