You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
avfilter/af_channelmap: Check for missing argument in get_channel_idx()
Fixes null pointer dereference Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -93,6 +93,8 @@ static int get_channel_idx(char **map, int *ch, char delim, int max_ch)
|
||||
int n = 0;
|
||||
if (!next && delim == '-')
|
||||
return AVERROR(EINVAL);
|
||||
if (!*map)
|
||||
return AVERROR(EINVAL);
|
||||
len = strlen(*map);
|
||||
sscanf(*map, "%d%n", ch, &n);
|
||||
if (n != len)
|
||||
|
Reference in New Issue
Block a user