mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
lavu/opt: dont crash on freeing NULL AVOptionRanges
Signed-off-by: Lukasz Marek <lukasz.m.luki2@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
09656707cc
commit
8c27292373
@ -1608,6 +1608,9 @@ void av_opt_freep_ranges(AVOptionRanges **rangesp)
|
||||
int i;
|
||||
AVOptionRanges *ranges = *rangesp;
|
||||
|
||||
if (!ranges)
|
||||
return;
|
||||
|
||||
for (i = 0; i < ranges->nb_ranges * ranges->nb_components; i++) {
|
||||
AVOptionRange *range = ranges->range[i];
|
||||
av_freep(&range->str);
|
||||
|
Loading…
Reference in New Issue
Block a user