You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
Revert "lavfi/avfiltergraph: add check before free the format"
This reverts commit f156f4ab23
.
The checks added by said commit are nonsense because they did not help
in case ff_merge_samplerates() or ff_merge_formats() returned NULL
while freeing one of its arguments: Said freeing does not change
the local variables of can_merge_formats().
Reviewed-by: Nicolas George <george@nsup.org>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
This commit is contained in:
@@ -419,9 +419,7 @@ static int can_merge_formats(AVFilterFormats *a_arg,
|
|||||||
av_freep(&ret);
|
av_freep(&ret);
|
||||||
return 1;
|
return 1;
|
||||||
} else {
|
} else {
|
||||||
if (a)
|
|
||||||
av_freep(&a->formats);
|
av_freep(&a->formats);
|
||||||
if (b)
|
|
||||||
av_freep(&b->formats);
|
av_freep(&b->formats);
|
||||||
av_freep(&a);
|
av_freep(&a);
|
||||||
av_freep(&b);
|
av_freep(&b);
|
||||||
|
Reference in New Issue
Block a user