diff options
author | Benoit Fouet <benoit.fouet@free.fr> | 2016-06-21 15:17:13 +0300 |
---|---|---|
committer | Benoit Fouet <benoit.fouet@free.fr> | 2016-06-30 10:24:39 +0300 |
commit | 879330c561f4214bd81c35f46f31dd7fe906a59a (patch) | |
tree | 1ddb7b6e5264d8950b120fb15919435b79325829 /libavcodec/h264_slice.c | |
parent | 4cc1ce4a91788a71670ea43fa0026b5a969e9e9e (diff) |
h264: make H264ParamSets sps const
Diffstat (limited to 'libavcodec/h264_slice.c')
-rw-r--r-- | libavcodec/h264_slice.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/h264_slice.c b/libavcodec/h264_slice.c index 6babd669e0..a63c9b9b4c 100644 --- a/libavcodec/h264_slice.c +++ b/libavcodec/h264_slice.c @@ -356,7 +356,7 @@ int ff_h264_update_thread_context(AVCodecContext *dst, h->ps.sps_ref = av_buffer_ref(h1->ps.sps_ref); if (!h->ps.sps_ref) return AVERROR(ENOMEM); - h->ps.sps = (SPS*)h->ps.sps_ref->data; + h->ps.sps = (const SPS*)h->ps.sps_ref->data; } if (need_reinit || !inited) { @@ -873,7 +873,7 @@ static enum AVPixelFormat get_pixel_format(H264Context *h, int force_callback) /* export coded and cropped frame dimensions to AVCodecContext */ static int init_dimensions(H264Context *h) { - SPS *sps = h->ps.sps; + const SPS *sps = (const SPS*)h->ps.sps; int width = h->width - (sps->crop_right + sps->crop_left); int height = h->height - (sps->crop_top + sps->crop_bottom); av_assert0(sps->crop_right + sps->crop_left < (unsigned)h->width); |