ffmpeg_opt: Constify hwaccel pointer.

Fixes a warning:
fftools/ffmpeg_opt.c:804:29: warning: assignment discards ‘const’ qualifier from pointer target type
This commit is contained in:
Carl Eugen Hoyos 2017-11-27 23:54:33 +01:00
parent 9ea6607d29
commit ed4a0c7923
1 changed files with 2 additions and 1 deletions

View File

@ -702,7 +702,8 @@ static void add_input_streams(OptionsContext *o, AVFormatContext *ic)
AVStream *st = ic->streams[i]; AVStream *st = ic->streams[i];
AVCodecParameters *par = st->codecpar; AVCodecParameters *par = st->codecpar;
InputStream *ist = av_mallocz(sizeof(*ist)); 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 *hwaccel_output_format = NULL;
char *codec_tag = NULL; char *codec_tag = NULL;
char *next; char *next;