FFmpeg/libavformat
Brendan McGrath 2472dbc7a7 avformat/hlsenc: Check that data is set
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: Brendan McGrath <redmcg@redmandi.dyndns.org>
2018-01-21 13:16:42 +08:00
..
2017-10-05 17:10:23 +02:00
2017-10-05 17:10:23 +02:00
2017-10-19 22:07:21 +02:00
2017-09-20 03:31:48 +02:00
2017-10-19 22:07:21 +02:00
2017-09-01 18:52:56 +08:00
2017-10-05 17:10:23 +02:00
2017-08-30 12:13:01 +02:00
2017-09-07 15:19:22 +02:00
2017-09-01 02:16:33 -03:00
2017-10-05 17:10:23 +02:00
2017-10-05 17:10:23 +02:00
2017-10-05 17:10:23 +02:00
2017-12-13 15:10:07 +00:00
2017-09-23 19:37:21 -03:00
2017-11-05 10:42:07 +01:00
2017-12-08 16:01:09 +01:00
2017-10-05 17:10:23 +02:00
2017-06-13 19:49:06 +02:00
2017-09-01 02:16:33 -03:00
2017-07-10 15:02:29 -04:00
2017-09-21 16:17:02 -08:00
2017-09-09 12:07:14 +02:00
2017-12-31 16:14:23 +01:00
2017-11-24 15:05:35 -03:00
2017-09-22 01:33:22 +02:00
2017-07-16 16:09:17 +01:00