diff options
author | Benoit Fouet <benoit.fouet@free.fr> | 2016-06-21 14:17:13 +0200 |
---|---|---|
committer | Benoit Fouet <benoit.fouet@free.fr> | 2016-06-30 09:24:39 +0200 |
commit | 879330c561f4214bd81c35f46f31dd7fe906a59a (patch) | |
tree | 1ddb7b6e5264d8950b120fb15919435b79325829 /libavcodec/h264_sei.c | |
parent | 4cc1ce4a91788a71670ea43fa0026b5a969e9e9e (diff) | |
download | ffmpeg-879330c561f4214bd81c35f46f31dd7fe906a59a.tar.gz |
h264: make H264ParamSets sps const
Diffstat (limited to 'libavcodec/h264_sei.c')
-rw-r--r-- | libavcodec/h264_sei.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/h264_sei.c b/libavcodec/h264_sei.c index 0bbd7e5a04..3bdbaa0097 100644 --- a/libavcodec/h264_sei.c +++ b/libavcodec/h264_sei.c @@ -278,7 +278,7 @@ static int decode_buffering_period(H264SEIBufferingPeriod *h, GetBitContext *gb, { unsigned int sps_id; int sched_sel_idx; - SPS *sps; + const SPS *sps; sps_id = get_ue_golomb_31(gb); if (sps_id > 31 || !ps->sps_list[sps_id]) { @@ -286,7 +286,7 @@ static int decode_buffering_period(H264SEIBufferingPeriod *h, GetBitContext *gb, "non-existing SPS %d referenced in buffering period\n", sps_id); return sps_id > 31 ? AVERROR_INVALIDDATA : AVERROR_PS_NOT_FOUND; } - sps = (SPS*)ps->sps_list[sps_id]->data; + sps = (const SPS*)ps->sps_list[sps_id]->data; // NOTE: This is really so duplicated in the standard... See H.264, D.1.1 if (sps->nal_hrd_parameters_present_flag) { |