Commit cbe2dc72 authored by Clément Bœsch's avatar Clément Bœsch

Merge commit '0e7772c5'

* commit '0e7772c5':
  h264: remove unused H264SliceContext.rbsp_buffer
Merged-by: 's avatarClément Bœsch <clement@stupeflix.com>
parents c957909a 0e7772c5
...@@ -373,8 +373,6 @@ static av_cold int h264_decode_end(AVCodecContext *avctx) ...@@ -373,8 +373,6 @@ static av_cold int h264_decode_end(AVCodecContext *avctx)
h->cur_pic_ptr = NULL; 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); av_freep(&h->slice_ctx);
h->nb_slice_ctx = 0; h->nb_slice_ctx = 0;
...@@ -1108,9 +1106,7 @@ FF_ENABLE_DEPRECATION_WARNINGS ...@@ -1108,9 +1106,7 @@ FF_ENABLE_DEPRECATION_WARNINGS
goto end; goto end;
context_count = 0; context_count = 0;
} }
/* Slice could not be decoded in parallel mode, restart. Note /* Slice could not be decoded in parallel mode, restart. */
* that rbsp_buffer is not transferred, but since we no longer
* run in parallel mode this should not be an issue. */
sl = &h->slice_ctx[0]; sl = &h->slice_ctx[0];
goto again; goto again;
} }
......
...@@ -450,10 +450,6 @@ typedef struct H264SliceContext { ...@@ -450,10 +450,6 @@ typedef struct H264SliceContext {
CABACContext cabac; CABACContext cabac;
uint8_t cabac_state[1024]; uint8_t cabac_state[1024];
int cabac_init_idc; int cabac_init_idc;
// rbsp buffer used for this slice
uint8_t *rbsp_buffer;
unsigned int rbsp_buffer_size;
} H264SliceContext; } H264SliceContext;
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment