Re: [FFmpeg-devel] [PATCH]lavf/rtpdec: Constify several pointers

2018-02-12 Thread Carl Eugen Hoyos
2018-02-12 0:02 GMT+01:00 Muhammad Faiz : > On Mon, Feb 12, 2018 at 2:05 AM, Carl Eugen Hoyos wrote: >> 2018-02-11 0:32 GMT+01:00 Muhammad Faiz : >>> Probably, the variables should also be constified. >> >> Not sure which variables you

Re: [FFmpeg-devel] [PATCH]lavf/rtpdec: Constify several pointers

2018-02-11 Thread Muhammad Faiz
On Mon, Feb 12, 2018 at 2:05 AM, Carl Eugen Hoyos wrote: > 2018-02-11 0:32 GMT+01:00 Muhammad Faiz : >> On Sat, Feb 10, 2018 at 8:57 AM, Carl Eugen Hoyos wrote: >>> Hi! >>> >>> Attached patch fixes two warnings. >>> libavformat/rtpdec.c:

Re: [FFmpeg-devel] [PATCH]lavf/rtpdec: Constify several pointers

2018-02-11 Thread Carl Eugen Hoyos
2018-02-11 0:32 GMT+01:00 Muhammad Faiz : > On Sat, Feb 10, 2018 at 8:57 AM, Carl Eugen Hoyos wrote: >> Hi! >> >> Attached patch fixes two warnings. >> libavformat/rtpdec.c: In function ‘ff_rtp_handler_find_by_name’: >> libavformat/rtpdec.c:155:20: warning:

Re: [FFmpeg-devel] [PATCH]lavf/rtpdec: Constify several pointers

2018-02-10 Thread Muhammad Faiz
On Sat, Feb 10, 2018 at 8:57 AM, Carl Eugen Hoyos wrote: > Hi! > > Attached patch fixes two warnings. > libavformat/rtpdec.c: In function ‘ff_rtp_handler_find_by_name’: > libavformat/rtpdec.c:155:20: warning: return discards ‘const’ > qualifier from pointer target type

[FFmpeg-devel] [PATCH]lavf/rtpdec: Constify several pointers

2018-02-09 Thread Carl Eugen Hoyos
Hi! Attached patch fixes two warnings. libavformat/rtpdec.c: In function ‘ff_rtp_handler_find_by_name’: libavformat/rtpdec.c:155:20: warning: return discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] return handler; ^~~