aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil/tablegen.h
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-08-07 04:10:05 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-08-12 21:26:45 +0200
commit9d1bf9cffefa2eb57221eb33d5a261750c4bee85 (patch)
tree811c67c730f6a4cad54e51b2cd20f3c0a2fee085 /libavutil/tablegen.h
parent195a25a7aba89d4fc040de63cbc6389abece393d (diff)
downloadffmpeg-9d1bf9cffefa2eb57221eb33d5a261750c4bee85.tar.gz
avfilter/formats: Simplify cleanup for ff_merge_* functions
Now that the output's refs-array is only allocated once, it is NULL in any error case and therefore needn't be freed at all; Instead an av_assert1() has been added to guarantee it to be NULL. Furthermore, it is unnecessary to av_freep(&ptr) when ptr == NULL. Reviewed-by: Nicolas George <george@nsup.org> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavutil/tablegen.h')
0 files changed, 0 insertions, 0 deletions