• Andreas Rheinhardt's avatar
    avcodec/internal: Allow receive_frame codecs to use decode_simple pkt · ffdda740
    Andreas Rheinhardt authored
    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: 's avatarAndreas Rheinhardt <andreas.rheinhardt@outlook.com>
    ffdda740
Name
Last commit
Last update
compat Loading commit data...
doc Loading commit data...
ffbuild Loading commit data...
fftools Loading commit data...
libavcodec Loading commit data...
libavdevice Loading commit data...
libavfilter Loading commit data...
libavformat Loading commit data...
libavutil Loading commit data...
libpostproc Loading commit data...
libswresample Loading commit data...
libswscale Loading commit data...
presets Loading commit data...
tests Loading commit data...
tools Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.mailmap Loading commit data...
.travis.yml Loading commit data...
CONTRIBUTING.md Loading commit data...
COPYING.GPLv2 Loading commit data...
COPYING.GPLv3 Loading commit data...
COPYING.LGPLv2.1 Loading commit data...
COPYING.LGPLv3 Loading commit data...
CREDITS Loading commit data...
Changelog Loading commit data...
INSTALL.md Loading commit data...
LICENSE.md Loading commit data...
MAINTAINERS Loading commit data...
Makefile Loading commit data...
README.md Loading commit data...
RELEASE Loading commit data...
configure Loading commit data...