[FFmpeg-devel] [FFmpeg-cvslog] avformat/rtpdec_asf: fix compiler warning about const qualifier being discarded

Timothy Gu timothygu99 at gmail.com
Thu Aug 28 03:17:36 CEST 2014


Michael Niedermayer <git at videolan.org> writes:

>
> ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Wed Aug 27 23:53:53 2014 +0200|
> [e6516944a3d504f208911033b31afedb3d427267] | committer: Michael Niedermayer
>
> avformat/rtpdec_asf: fix compiler warning about const qualifier being
> discarded
>
> Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
>
> > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e6516944a3d504f208911033b31afedb3d427267
> ---
>
>  libavformat/rtpdec_asf.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/libavformat/rtpdec_asf.c b/libavformat/rtpdec_asf.c
> index 541b86f..8e19654 100644
> --- a/libavformat/rtpdec_asf.c
> +++ b/libavformat/rtpdec_asf.c
>  @@ -188,7 +188,7@@ static int asfrtp_parse_packet(AVFormatContext *s,
> PayloadContext *asf,
>
>          av_freep(&asf->buf);
>

> -        ffio_init_context(pb, buf, len, 0, NULL, NULL, NULL, NULL);
> +        ffio_init_context(pb, (uint8_t *)buf, len, 0, NULL, NULL, NULL,
> NULL);

Wouldn't it be more correct to declare ffio_init_context's second
argument const?

[...]

Timothy


More information about the ffmpeg-devel mailing list