From b13fc1e344011949929975a3451f78f226aa1de3 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Fri, 20 May 2016 10:20:33 +0200 Subject: h264: do not pass H264Context to h264_slice_header_parse() This should make it more clear that this function does not need any decoder-global state other than the parameter sets. --- libavcodec/h264dec.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libavcodec/h264dec.h') diff --git a/libavcodec/h264dec.h b/libavcodec/h264dec.h index fbe68c1..e422871 100644 --- a/libavcodec/h264dec.h +++ b/libavcodec/h264dec.h @@ -528,7 +528,7 @@ int ff_h264_get_slice_type(const H264SliceContext *sl); */ int ff_h264_alloc_tables(H264Context *h); -int ff_h264_decode_ref_pic_list_reordering(const H264Context *h, H264SliceContext *sl); +int ff_h264_decode_ref_pic_list_reordering(H264SliceContext *sl, void *logctx); int ff_h264_build_ref_list(const H264Context *h, H264SliceContext *sl); void ff_h264_remove_all_refs(H264Context *h); @@ -537,8 +537,8 @@ void ff_h264_remove_all_refs(H264Context *h); */ int ff_h264_execute_ref_pic_marking(H264Context *h); -int ff_h264_decode_ref_pic_marking(const H264Context *h, H264SliceContext *sl, - GetBitContext *gb); +int ff_h264_decode_ref_pic_marking(H264SliceContext *sl, GetBitContext *gb, + const H2645NAL *nal, void *logctx); void ff_h264_hl_decode_mb(const H264Context *h, H264SliceContext *sl); int ff_h264_decode_init(AVCodecContext *avctx); -- cgit v1.1