diff options
author | Carl Eugen Hoyos <ceffmpeg@gmail.com> | 2017-11-27 23:54:33 +0100 |
---|---|---|
committer | Carl Eugen Hoyos <ceffmpeg@gmail.com> | 2017-11-29 00:15:10 +0100 |
commit | ed4a0c7923e8935d1829029a2c7eb980269f8ca3 (patch) | |
tree | 5a597f9ac69f77853e9a9664565b260407d66108 | |
parent | 9ea6607d294526688ab1b1342cb36ee159683e88 (diff) | |
download | ffmpeg-ed4a0c7923e8935d1829029a2c7eb980269f8ca3.tar.gz |
ffmpeg_opt: Constify hwaccel pointer.
Fixes a warning:
fftools/ffmpeg_opt.c:804:29: warning: assignment discards ‘const’ qualifier from pointer target type
-rw-r--r-- | fftools/ffmpeg_opt.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fftools/ffmpeg_opt.c b/fftools/ffmpeg_opt.c index 672054223a..a6e36ac822 100644 --- a/fftools/ffmpeg_opt.c +++ b/fftools/ffmpeg_opt.c @@ -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; |