• James Almer's avatar
    avcodec/bsf: make sure the AVBSFInternal stored packet is reference counted · ed1f08bf
    James Almer authored
    Some bitstream filters may buffer said packet in their own contexts
    for latter use. The documentation for av_bsf_send_packet() doesn't
    forbid feeding it non-reference counted packets, which depending on
    the way said packets were internally buffered by the bsf it may
    result in the data described in them becoming invalid or unavailable
    at any time.
    This was the case with vp9_superframe after commit e1bc3f43, which
    was then promptly fixed in 37f4a093 and 7a02b364. It is still the
    case even today with vp9_reorder_raw.
    
    With this change the bitstream filters will not have to worry how to
    store or consume the packets fed to them.
    Reviewed-by: 's avatarwm4 <nfxjfg@googlemail.com>
    Signed-off-by: 's avatarJames Almer <jamrial@gmail.com>
    ed1f08bf
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...