From 879330c561f4214bd81c35f46f31dd7fe906a59a Mon Sep 17 00:00:00 2001 From: Benoit Fouet Date: Tue, 21 Jun 2016 14:17:13 +0200 Subject: h264: make H264ParamSets sps const --- libavcodec/h264_ps.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libavcodec/h264_ps.c') diff --git a/libavcodec/h264_ps.c b/libavcodec/h264_ps.c index 76ac9f1b3d..1e1e793380 100644 --- a/libavcodec/h264_ps.c +++ b/libavcodec/h264_ps.c @@ -712,7 +712,7 @@ int ff_h264_decode_picture_parameter_set(GetBitContext *gb, AVCodecContext *avct H264ParamSets *ps, int bit_length) { AVBufferRef *pps_buf; - SPS *sps; + const SPS *sps; unsigned int pps_id = get_ue_golomb(gb); PPS *pps; int qp_bd_offset; @@ -743,7 +743,7 @@ int ff_h264_decode_picture_parameter_set(GetBitContext *gb, AVCodecContext *avct ret = AVERROR_INVALIDDATA; goto fail; } - sps = (SPS*)ps->sps_list[pps->sps_id]->data; + sps = (const SPS*)ps->sps_list[pps->sps_id]->data; if (sps->bit_depth_luma > 14) { av_log(avctx, AV_LOG_ERROR, "Invalid luma bit depth=%d\n", -- cgit v1.2.3