summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <[email protected]>2016-06-12 21:28:10 +0200
committerMichael Niedermayer <[email protected]>2016-06-13 01:57:22 +0200
commit4a8ed314fb388b8e6bc31c373474c05cfb09061c (patch)
tree17213ce6d4d644e4f9610ff08935b6eb07ccbb0b
parent15f9189b9cc826b02e423b39a8fabad842d50359 (diff)
avcodec/h264_slice: Add casts to suppress warnings
Signed-off-by: Michael Niedermayer <[email protected]>
-rw-r--r--libavcodec/h264_slice.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/h264_slice.c b/libavcodec/h264_slice.c
index 6c097075d4..25dbf6cb3e 100644
--- a/libavcodec/h264_slice.c
+++ b/libavcodec/h264_slice.c
@@ -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) {