• Brendan McGrath's avatar
    avformat/hlsenc: Check that data is set · 2472dbc7
    Brendan McGrath authored
    If codecpar->extradata is not set (for example, when the stream goes
    through the 'tee' muxer), then a segfault occurs.
    This patch ensures the data variable is not null before attempting
    to access it
    Before the var_stream_map option was available - I was using the tee
    muxer to create each resolution as an individual stream.
    When running this configuration after the most recent hlsenc change
    I hit a segfault
    The most simple command which recreates the segfault is:
    ffmpeg -i in.ts -map 0:a -map 0:v -c:a aac -c:v h264 -f tee [select=\'a,v\':f=hls]tv_hls_hd.m3u8
    Signed-off-by: 's avatarBrendan McGrath <redmcg@redmandi.dyndns.org>
    2472dbc7
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...