avcodec/h264_slice: Add casts to suppress warnings

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
Michael Niedermayer 2016-06-12 21:28:10 +02:00
parent 15f9189b9c
commit 4a8ed314fb
1 changed files with 2 additions and 2 deletions

View File

@ -354,13 +354,13 @@ int ff_h264_update_thread_context(AVCodecContext *dst,
h->ps.pps_ref = av_buffer_ref(h1->ps.pps_ref);
if (!h->ps.pps_ref)
return AVERROR(ENOMEM);
h->ps.pps = h->ps.pps_ref->data;
h->ps.pps = (const PPS*)h->ps.pps_ref->data;
}
if (h1->ps.sps_ref) {
h->ps.sps_ref = av_buffer_ref(h1->ps.sps_ref);
if (!h->ps.sps_ref)
return AVERROR(ENOMEM);
h->ps.sps = h->ps.sps_ref->data;
h->ps.sps = (SPS*)h->ps.sps_ref->data;
}
if (need_reinit || !inited) {