OSDN Git Service

h264: remove pointless setting of some variables in loop_filter
authorAnton Khirnov <anton@khirnov.net>
Wed, 13 Apr 2016 15:17:51 +0000 (17:17 +0200)
committerAnton Khirnov <anton@khirnov.net>
Sun, 24 Apr 2016 08:06:25 +0000 (10:06 +0200)
Those should already be set to the correct values.

libavcodec/h264_slice.c

index 25f4cbf..4c52eff 100644 (file)
@@ -1817,9 +1817,7 @@ static void loop_filter(const H264Context *h, H264SliceContext *sl, int start_x,
             for (mb_y = end_mb_y - FRAME_MBAFF(h); mb_y <= end_mb_y; mb_y++) {
                 int mb_xy, mb_type;
                 mb_xy         = sl->mb_xy = mb_x + mb_y * h->mb_stride;
-                sl->slice_num = h->slice_table[mb_xy];
                 mb_type       = h->cur_pic.mb_type[mb_xy];
-                sl->list_count = h->list_counts[mb_xy];
 
                 if (FRAME_MBAFF(h))
                     sl->mb_mbaff               =