[FFmpeg-cvslog] avcodec/hevc_mp4toannexb_bsf: silence -Wdiscarded-qualifiers
Ganesh Ajjanagadde
git at videolan.org
Sun Sep 20 21:34:26 CEST 2015
ffmpeg | branch: master | Ganesh Ajjanagadde <gajjanagadde at gmail.com> | Sun Sep 20 09:10:51 2015 -0400| [198110d702daf11a9f7db7b0ee53cc4a28ac5869] | committer: Michael Niedermayer
avcodec/hevc_mp4toannexb_bsf: silence -Wdiscarded-qualifiers
*poutbuf is non-const, so this casts it explicitly.
This suppresses -Wdiscarded-qualifiers seen in e.g
http://fate.ffmpeg.org/log.cgi?time=20150919100330&log=compile&slot=x86_64-archlinux-gcc-enableshared.
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde at gmail.com>
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=198110d702daf11a9f7db7b0ee53cc4a28ac5869
---
libavcodec/hevc_mp4toannexb_bsf.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/hevc_mp4toannexb_bsf.c b/libavcodec/hevc_mp4toannexb_bsf.c
index 54d6d79..d6feb99 100644
--- a/libavcodec/hevc_mp4toannexb_bsf.c
+++ b/libavcodec/hevc_mp4toannexb_bsf.c
@@ -134,7 +134,7 @@ static int hevc_mp4toannexb_filter(AVBitStreamFilterContext *bsfc,
"The input looks like it is Annex B already\n");
ctx->logged_nonmp4_warning = 1;
}
- *poutbuf = buf;
+ *poutbuf = (uint8_t *)buf;
*poutbuf_size = buf_size;
return 0;
}
More information about the ffmpeg-cvslog
mailing list