ffmpeg_opt: Constify hwaccel pointer.
authorCarl Eugen Hoyos <ceffmpeg@gmail.com>
Mon, 27 Nov 2017 22:54:33 +0000 (23:54 +0100)
committerCarl Eugen Hoyos <ceffmpeg@gmail.com>
Tue, 28 Nov 2017 23:15:10 +0000 (00:15 +0100)
Fixes a warning:
fftools/ffmpeg_opt.c:804:29: warning: assignment discards â€˜const’ qualifier from pointer target type

fftools/ffmpeg_opt.c

index 6720542..a6e36ac 100644 (file)
@@ -702,7 +702,8 @@ static void add_input_streams(OptionsContext *o, AVFormatContext *ic)
         AVStream *st = ic->streams[i];
         AVCodecParameters *par = st->codecpar;
         InputStream *ist = av_mallocz(sizeof(*ist));
-        char *framerate = NULL, *hwaccel = NULL, *hwaccel_device = NULL;
+        char *framerate = NULL, *hwaccel_device = NULL;
+        const char *hwaccel = NULL;
         char *hwaccel_output_format = NULL;
         char *codec_tag = NULL;
         char *next;