]> git.sesse.net Git - ffmpeg/commitdiff
h264: remove unused H264SliceContext.rbsp_buffer
authorAnton Khirnov <anton@khirnov.net>
Mon, 11 Apr 2016 14:04:05 +0000 (16:04 +0200)
committerAnton Khirnov <anton@khirnov.net>
Sun, 24 Apr 2016 08:06:25 +0000 (10:06 +0200)
libavcodec/h264.c
libavcodec/h264.h

index 9d7b69c3b591b3f8323b75cb021072e1062dc4dd..9cc0a241fef3ed31e5e00e1d65c21f72aa9cd6b1 100644 (file)
@@ -337,8 +337,6 @@ static av_cold int h264_decode_end(AVCodecContext *avctx)
 
     h->cur_pic_ptr = NULL;
 
-    for (i = 0; i < h->nb_slice_ctx; i++)
-        av_freep(&h->slice_ctx[i].rbsp_buffer);
     av_freep(&h->slice_ctx);
     h->nb_slice_ctx = 0;
 
@@ -952,9 +950,7 @@ again:
             av_log(h->avctx, AV_LOG_ERROR, "decode_slice_header error\n");
             sl->ref_count[0] = sl->ref_count[1] = sl->list_count = 0;
         } else if (err == 1) {
-            /* Slice could not be decoded in parallel mode, restart. Note
-             * that rbsp_buffer is not transferred, but since we no longer
-             * run in parallel mode this should not be an issue. */
+            /* Slice could not be decoded in parallel mode, restart. */
             sl               = &h->slice_ctx[0];
             goto again;
         }
index 6c03e5e0a1c1aab114960be111ee2b5e0ca088fc..794492740ed02f9ff5e7f1a5f7b9d3a9c08ba09f 100644 (file)
@@ -435,10 +435,6 @@ typedef struct H264SliceContext {
     CABACContext cabac;
     uint8_t cabac_state[1024];
     int cabac_init_idc;
-
-    // rbsp buffer used for this slice
-    uint8_t *rbsp_buffer;
-    unsigned int rbsp_buffer_size;
 } H264SliceContext;
 
 /**