aboutsummaryrefslogtreecommitdiffstats
path: root/libswscale/alphablend.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-09-23 22:34:39 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-11-07 17:12:58 +0100
commitffdda740fe7983240b31bee3e058e43a859851a4 (patch)
tree79e4256f083ed690d0ffd248b8ff809cffb24a4c /libswscale/alphablend.c
parent9139dc6140e8fb8d84760f3c567332b41858798d (diff)
downloadffmpeg-ffdda740fe7983240b31bee3e058e43a859851a4.tar.gz
avcodec/internal: Allow receive_frame codecs to use decode_simple pkt
Decoders implementing the receive_frame API currently mostly use stack packets to temporarily hold the packet they receive from ff_decode_get_packet(). This role directly parallels the role of in_pkt, the spare packet used in decode_simple_internal for the decoders implementing the traditional decoding API. Said packet is unused by the generic code for the decoders implementing the receive_frame API, so allow them to use it to fulfill the function it already fulfills for the traditional API for both APIs. There is only one caveat in this: The packet is automatically unreferenced in avcodec_flush_buffers(). But this is actually positive as it means the decoders don't have to do this themselves (in case the packet is preserved between receive_frame calls). Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libswscale/alphablend.c')
0 files changed, 0 insertions, 0 deletions