ffmpeg/libavutil
Andreas Rheinhardt 6c57e0b4a8 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>
2021-12-05 13:27:38 +01:00
..
aarch64 aarch64: Add Armv8.5-A BTI support 2021-11-16 13:43:56 +02:00
arm
avr32
bfin
mips
ppc
sh4
tests avutil/tests/opt: Set AVClass.version 2021-09-27 05:51:44 +02:00
tomi
x86 x86/intmath: add VEX encoded versions of av_clipf() and av_clipd() 2021-11-19 11:21:03 -03:00
.gitignore
Makefile vulkan: fix checkheaders 2021-11-19 16:47:28 +01:00
adler32.c
adler32.h
aes.c
aes.h
aes_ctr.c
aes_ctr.h
aes_internal.h
attributes.h
audio_fifo.c Replace all occurences of av_mallocz_array() by av_calloc() 2021-09-20 01:03:52 +02:00
audio_fifo.h
avassert.h
avsscanf.c
avstring.c
avstring.h
avutil.h
avutilres.rc
base64.c
base64.h
blowfish.c
blowfish.h
bprint.c all: Use av_memdup() where appropriate 2021-12-03 16:07:02 +01:00
bprint.h
bswap.h
buffer.c avutil/buffer: Avoid allocation of AVBuffer when using buffer pool 2021-09-18 23:16:49 +02:00
buffer.h avutil/buffer: constify some function parameters 2021-09-17 13:28:09 -03:00
buffer_internal.h avutil/buffer: Avoid allocation of AVBuffer when using buffer pool 2021-09-18 23:16:49 +02:00
camellia.c
camellia.h
cast5.c
cast5.h
channel_layout.c
channel_layout.h
color_utils.c
color_utils.h
colorspace.h
common.h libavutil/common: clip nan value to amin 2021-11-15 16:50:08 -03:00
cpu.c
cpu.h
cpu_internal.h
crc.c
crc.h
cuda_check.h
des.c
des.h
detection_bbox.c avutil/detection_bbox: Fix av_detection_bbox_alloc failed if nb_bboxes == 0 2021-10-08 10:11:59 +08:00
detection_bbox.h
dict.c
dict.h
display.c
display.h
dovi_meta.c
dovi_meta.h
downmix_info.c
downmix_info.h
dynarray.h
encryption_info.c Replace all occurences of av_mallocz_array() by av_calloc() 2021-09-20 01:03:52 +02:00
encryption_info.h
error.c
error.h
eval.c
eval.h
ffmath.h
fifo.c
fifo.h
file.c
file.h
file_open.c
film_grain_params.c
film_grain_params.h
fixed_dsp.c
fixed_dsp.h
float_dsp.c
float_dsp.h
frame.c avutil/frame: Treat frame as uninitialized in get_frame_defaults() 2021-12-05 13:27:38 +01:00
frame.h lavu/frame: clarify doxy 2021-12-04 14:29:06 +01:00
hash.c
hash.h
hdr_dynamic_metadata.c
hdr_dynamic_metadata.h
hmac.c
hmac.h
hwcontext.c Replace all occurences of av_mallocz_array() by av_calloc() 2021-09-20 01:03:52 +02:00
hwcontext.h
hwcontext_cuda.c avutil/hwcontext_cuda: return more useful error codes from init functions 2021-11-22 23:03:21 +01:00
hwcontext_cuda.h
hwcontext_cuda_internal.h
hwcontext_d3d11va.c Replace all occurences of av_mallocz_array() by av_calloc() 2021-09-20 01:03:52 +02:00
hwcontext_d3d11va.h libavutil/hwcontext_d3d11va: adding more texture information to the D3D11 hwcontext API 2021-09-08 17:48:02 -03:00
hwcontext_drm.c
hwcontext_drm.h
hwcontext_dxva2.c avutil/hwcontext_dxva2: add ARGB format 2021-11-13 19:22:57 +01:00
hwcontext_dxva2.h
hwcontext_internal.h
hwcontext_mediacodec.c
hwcontext_mediacodec.h
hwcontext_opencl.c Replace all occurences of av_mallocz_array() by av_calloc() 2021-09-20 01:03:52 +02:00
hwcontext_opencl.h
hwcontext_qsv.c libavutil/hwcontext_qsv: fix a bug for mapping vaapi frame to qsv 2021-12-04 14:06:30 +01:00
hwcontext_qsv.h
hwcontext_vaapi.c
hwcontext_vaapi.h
hwcontext_vdpau.c
hwcontext_vdpau.h
hwcontext_videotoolbox.c videotoolbox: add alpha support 2021-11-28 16:40:58 -06:00
hwcontext_videotoolbox.h
hwcontext_vulkan.c hwcontext_vulkan: use correct return value for allocation failure 2021-11-27 04:46:41 +01:00
hwcontext_vulkan.h avutil/vulkan: load win32 external memory functions 2021-11-14 12:50:32 +01:00
imgutils.c
imgutils.h
imgutils_internal.h
integer.c
integer.h
internal.h Replace all occurences of av_mallocz_array() by av_calloc() 2021-09-20 01:03:52 +02:00
intfloat.h
intmath.c
intmath.h
intreadwrite.h
lfg.c
lfg.h
libavutil.v
libm.h
lls.c
lls.h
log.c
log.h
log2_tab.c
lzo.c
lzo.h
macos_kperf.c
macos_kperf.h
macros.h
mastering_display_metadata.c
mastering_display_metadata.h
mathematics.c
mathematics.h avutil/mathematics: Document av_rescale_rnd() behavior on non int64 results 2021-10-21 14:13:03 +02:00
md5.c avutil/md5: Avoid av_unused variable 2021-10-02 17:13:57 +02:00
md5.h
mem.c avutil/mem: Deprecate av_mallocz_array() 2021-09-20 01:04:09 +02:00
mem.h avutil/mem: Deprecate av_mallocz_array() 2021-09-20 01:04:09 +02:00
mem_internal.h
motion_vector.h
murmur3.c
murmur3.h
opt.c avutil/opt: fix mis-alignment of option and constant values for filter help 2021-11-13 19:55:32 +01:00
opt.h
parseutils.c avutil/parseutils: add qhd(Quad HD) or wqhd(Wide Quad HD) for 1440p 2021-11-03 21:38:37 +08:00
parseutils.h
pca.c
pca.h
pixdesc.c lavu/pixfmt: add high-bit-depth semi-planar 4:2:2/4:4:4 formats 2021-11-28 16:40:43 -06:00
pixdesc.h
pixelutils.c
pixelutils.h
pixfmt.h lavu/pixfmt: add high-bit-depth semi-planar 4:2:2/4:4:4 formats 2021-11-28 16:40:43 -06:00
qsort.h
random_seed.c
random_seed.h
rational.c
rational.h
rc4.c
rc4.h
replaygain.h
reverse.c
reverse.h
ripemd.c
ripemd.h
samplefmt.c
samplefmt.h
sha.c
sha.h
sha512.c
sha512.h
slicethread.c
slicethread.h
softfloat.h
softfloat_ieee754.h
softfloat_tables.h
spherical.c
spherical.h
stereo3d.c
stereo3d.h
tablegen.h
tea.c
tea.h
thread.h
threadmessage.c
threadmessage.h
time.c
time.h
time_internal.h
timecode.c
timecode.h
timer.h
timestamp.h
tree.c
tree.h
twofish.c
twofish.h
tx.c
tx.h
tx_double.c
tx_float.c
tx_int32.c
tx_priv.h
tx_template.c
utils.c avutil/utils: Remove racy check from avutil_version() 2021-09-29 02:58:07 +02:00
version.h lavu/avframe: add a time_base field 2021-12-03 22:41:00 +01:00
video_enc_params.c
video_enc_params.h
vulkan.c lavu/vulkan: check for initialization when freeing buffers 2021-11-20 01:48:45 +01:00
vulkan.h vulkan: fix checkheaders 2021-11-19 16:47:28 +01:00
vulkan_functions.h avutil/hwcontext_vulkan: fully support customizable validation layers 2021-11-26 10:36:39 +01:00
vulkan_glslang.c avutil/vulkan_glslang: fix compiling failure issue 2021-11-19 16:47:48 +01:00
vulkan_loader.h vulkan_loader: fix typo in error message 2021-11-18 06:40:52 +01:00
vulkan_shaderc.c lavu/vulkan: add support for using libshaderc as a GLSL compiler 2021-11-19 16:47:30 +01:00
wchar_filename.h Replace all occurences of av_mallocz_array() by av_calloc() 2021-09-20 01:03:52 +02:00
xga_font_data.c
xga_font_data.h
xtea.c
xtea.h