diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-07-22 09:01:27 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-07-24 05:35:10 +0200 |
commit | c253b180cb8fc5925d057ccd7f97399ec03cb348 (patch) | |
tree | 6170fb85316c6c89a628909419e9fd42a2a70f3d /libavutil/reverse.h | |
parent | 4ff73add5dbe6c319d693355be44df2e17a0b8bf (diff) | |
download | ffmpeg-c253b180cb8fc5925d057ccd7f97399ec03cb348.tar.gz |
tools/graph2dot: Don't use sizeof(AVFilterGraph), check allocation
Use avfilter_graph_alloc() instead of av_mallocz(sizeof(AVFilterGraph))
to allocate an AVFilterGraph; this also properly allocates the graph's
internal. The current code just happened to work because it did not
make any use of said internal.
Also check the allocation; this fixes Coverity #1292528.
Reviewed-by: Jan Ekström <jeebjp@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavutil/reverse.h')
0 files changed, 0 insertions, 0 deletions