Commit 4a8ed314 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/h264_slice: Add casts to suppress warnings

Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 15f9189b
...@@ -354,13 +354,13 @@ int ff_h264_update_thread_context(AVCodecContext *dst, ...@@ -354,13 +354,13 @@ int ff_h264_update_thread_context(AVCodecContext *dst,
h->ps.pps_ref = av_buffer_ref(h1->ps.pps_ref); h->ps.pps_ref = av_buffer_ref(h1->ps.pps_ref);
if (!h->ps.pps_ref) if (!h->ps.pps_ref)
return AVERROR(ENOMEM); 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) { if (h1->ps.sps_ref) {
h->ps.sps_ref = av_buffer_ref(h1->ps.sps_ref); h->ps.sps_ref = av_buffer_ref(h1->ps.sps_ref);
if (!h->ps.sps_ref) if (!h->ps.sps_ref)
return AVERROR(ENOMEM); return AVERROR(ENOMEM);
h->ps.sps = h->ps.sps_ref->data; h->ps.sps = (SPS*)h->ps.sps_ref->data;
} }
if (need_reinit || !inited) { if (need_reinit || !inited) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment