1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00
FFmpeg/fftools
Andreas Rheinhardt a132614bba fftools/ffmpeg: Avoid temporary frame
send_frame_to_filters() sends a frame to all the filters that
need said frame; for every filter except the last one this involves
creating a reference to the frame, because
av_buffersrc_add_frame_flags() by default takes ownership of
the supplied references. Yet said function has a flag which
changes its behaviour to create a reference itself.
This commit uses this flag and stops creating the references itself;
this allows to remove the spare AVFrame holding the temporary
references; it also avoids unreferencing said frame.

Reviewed-by: James Almer <jamrial@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2021-11-20 00:07:47 +01:00
..
cmdutils.c fftools: Constify values from av_dict_get() 2021-11-18 19:43:32 +01:00
cmdutils.h cmdutils: add an option for listing stream dispositions 2021-11-16 10:51:32 +01:00
ffmpeg_filter.c fftools: Constify values from av_dict_get() 2021-11-18 19:43:32 +01:00
ffmpeg_hw.c ffmpeg_hw: make hardware selection for filters more user friendly 2021-09-12 13:33:50 -03:00
ffmpeg_opt.c fftools/ffmpeg: Avoid temporary frame 2021-11-20 00:07:47 +01:00
ffmpeg_videotoolbox.c ffmpeg_videotoolbox: skip memory copy if hwaccel_output_format match 2021-06-10 19:54:03 +08:00
ffmpeg.c fftools/ffmpeg: Avoid temporary frame 2021-11-20 00:07:47 +01:00
ffmpeg.h fftools/ffmpeg: Avoid temporary frame 2021-11-20 00:07:47 +01:00
ffplay.c fftools: Constify values from av_dict_get() 2021-11-18 19:43:32 +01:00
ffprobe.c fftools: Constify values from av_dict_get() 2021-11-18 19:43:32 +01:00
Makefile qsvdec: add support for HW_DEVICE_CTX method 2021-08-11 13:45:36 -03:00