[FFmpeg-cvslog] avcodec/h264_slice: Add casts to suppress warnings
Michael Niedermayer
git at videolan.org
Mon Jun 13 02:26:54 CEST 2016
ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Sun Jun 12 21:28:10 2016 +0200| [4a8ed314fb388b8e6bc31c373474c05cfb09061c] | committer: Michael Niedermayer
avcodec/h264_slice: Add casts to suppress warnings
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=4a8ed314fb388b8e6bc31c373474c05cfb09061c
---
libavcodec/h264_slice.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavcodec/h264_slice.c b/libavcodec/h264_slice.c
index 6c09707..25dbf6c 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) {
More information about the ffmpeg-cvslog
mailing list