Skip to content

Commit

Permalink
h264: remove unused H264SliceContext.rbsp_buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
elenril committed Apr 24, 2016
1 parent 7f045c4 commit 0e7772c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
6 changes: 1 addition & 5 deletions libavcodec/h264.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -952,9 +950,7 @@ static int decode_nal_units(H264Context *h, const uint8_t *buf, int buf_size)
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;
}
Expand Down
4 changes: 0 additions & 4 deletions libavcodec/h264.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;

/**
Expand Down

0 comments on commit 0e7772c

Please sign in to comment.