diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-12-03 21:19:04 +0100 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-12-05 13:27:38 +0100 |
commit | 6c57e0b4a8825de01e363bc6a6ab598aaf4188e4 (patch) | |
tree | 2cee2055bb6ba55034f0df6581fc13ef1f139bf7 /libavcodec/jpeg2000dwt.h | |
parent | fc01a703dea4fe4f2eff73480958ee6c75aa8c30 (diff) | |
download | ffmpeg-6c57e0b4a8825de01e363bc6a6ab598aaf4188e4.tar.gz |
avutil/frame: Treat frame as uninitialized in get_frame_defaults()
Currently, it also tests whether extended_data points to something
different than the AVFrame's data array and frees extended_data
if it is different. Yet this is only necessary for one of its three
callers, namely av_frame_unref(); meanwhile the other two callers
took measures to avoid this (or rather, to make it to an av_free(NULL)).
This commit moves this chunk to av_frame_unref() (so that
get_frame_defaults() now treats its input as uninitialized)
and removes the now superfluous code in the other two callers.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/jpeg2000dwt.h')
0 files changed, 0 insertions, 0 deletions