• James Cowgill's avatar
    avcodec/decode: reset codec on receiving packet after EOF in compat_decode · 02ba4b91
    James Cowgill authored
    In commit 061a0c14 ("decode: restructure the core decoding code"), the
    deprecated avcodec_decode_* APIs were reworked so that they called into the
    new avcodec_send_packet / avcodec_receive_frame API. This had the side effect
    of prohibiting sending new packets containing data after a drain
    packet, but in previous versions of FFmpeg this "worked" and some
    applications relied on it.
    
    To restore some compatibility, reset the codec if we receive a new non-drain
    packet using the old API after draining has completed. While this does
    not give the same behaviour as the old API did, in the majority of cases
    it works and it does not require changes to any other part of the decoding
    code.
    
    Fixes ticket #6775
    Signed-off-by: 's avatarJames Cowgill <jcowgill@debian.org>
    Signed-off-by: 's avatarMarton Balint <cus@passwd.hu>
    02ba4b91
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...
libavresample 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...
.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...