1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-02-04 06:08:26 +02:00
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
..
2021-04-27 10:43:13 -03:00
2021-04-27 10:43:13 -03:00
2021-07-22 14:34:31 +02:00
2021-07-22 14:34:31 +02:00
2018-09-14 21:36:21 +02:00
2021-04-01 14:47:00 +02:00
2021-07-20 10:31:41 +02:00
2021-07-20 10:31:41 +02:00
2021-07-22 14:34:31 +02:00
2021-07-22 14:34:31 +02:00
2020-04-23 08:05:15 +08:00
2020-04-23 08:05:15 +08:00
2018-09-12 19:15:09 +02:00
2018-09-12 19:15:09 +02:00
2021-12-04 14:29:06 +01:00
2021-04-27 10:43:13 -03:00
2021-07-22 14:34:31 +02:00
2021-07-22 14:34:31 +02:00
2021-07-22 14:34:31 +02:00
2021-07-22 14:34:31 +02:00
2021-07-22 14:34:31 +02:00
2021-07-21 16:35:27 +02:00
2021-07-21 16:35:27 +02:00
2021-11-19 16:47:28 +01:00
2021-10-02 17:13:57 +02:00
2021-07-22 14:34:31 +02:00
2021-09-20 01:04:09 +02:00
2021-09-20 01:04:09 +02:00
2021-04-27 10:43:13 -03:00
2021-07-22 14:34:31 +02:00
2021-07-22 14:34:31 +02:00
2020-05-23 15:51:44 +02:00
2020-05-23 15:51:44 +02:00
2021-04-27 10:43:13 -03:00
2021-07-22 14:34:31 +02:00
2021-04-27 10:43:13 -03:00
2021-07-22 14:34:31 +02:00
2021-04-27 10:43:13 -03:00
2021-07-22 14:34:31 +02:00
2021-03-14 23:29:51 +01:00
2021-07-21 16:35:27 +02:00
2021-07-22 14:34:31 +02:00
2021-12-03 22:41:00 +01:00
2021-11-19 16:47:28 +01:00