• Marth64's avatar
    avformat/subtitles: extend ff_subtitles_queue_insert() to support not yet available events · 1c353336
    Marth64 authored
    If ff_subtitles_queue_insert() were given a NULL buffer
    with 0 length, it would still attempt to grow the packet
    or memcpy depending on if merge option is enabled.
    
    In this commit, allow passing a NULL buffer with 0 length
    without attempting to do such operations. This way, if a
    subtitle demuxer happens to pass an empty cue or wants to
    use av_get_packet() to read bytes, there are no unnecessary
    operations on the packet after it is allocated.
    Signed-off-by: 's avatarMarth64 <marth64@proxyid.net>
    1c353336
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...