[FFmpeg-devel] [PATCH]ffmpeg_opt: Silence a const warning

Michael Niedermayer michael at niedermayer.cc
Tue Nov 28 21:29:10 EET 2017


On Tue, Nov 28, 2017 at 12:07:33AM +0100, Carl Eugen Hoyos wrote:
> Hi!
> 
> Attached patch fixes a warning:
> fftools/ffmpeg_opt.c: In function ‘add_input_streams’:
> fftools/ffmpeg_opt.c:804:29: warning: assignment discards ‘const’
> qualifier from pointer target type
> 
> Please comment, Carl Eugen

>  ffmpeg_opt.c |    3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> f2101d38b3539e2f560eb7eb9dab1c9f722a5549  0001-ffmpeg_opt-Constify-hwaccel-pointer.patch
> From 5e1be030521a4253dc8385567ef359ef794f0820 Mon Sep 17 00:00:00 2001
> From: Carl Eugen Hoyos <ceffmpeg at gmail.com>
> Date: Mon, 27 Nov 2017 23:54:33 +0100
> Subject: [PATCH] ffmpeg_opt: Constify hwaccel pointer.
> MIME-Version: 1.0
> Content-Type: text/plain; charset=UTF-8
> Content-Transfer-Encoding: 8bit
> 
> Fixes a warning:
> fftools/ffmpeg_opt.c:804:29: warning: assignment discards ‘const’ qualifier from pointer target type

LGTM

thx

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

The greatest way to live with honor in this world is to be what we pretend
to be. -- Socrates
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20171128/7bf9b640/attachment.sig>


More information about the ffmpeg-devel mailing list