mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
Merge remote-tracking branch 'qatar/master'
* qatar/master:
hls: Create an AVProgram for each variant
Conflicts:
libavformat/hls.c
See: 23db5418ed
Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
994e09345e
@ -536,7 +536,8 @@ static int hls_read_header(AVFormatContext *s)
|
||||
struct variant *v = c->variants[i];
|
||||
AVInputFormat *in_fmt = NULL;
|
||||
char bitrate_str[20];
|
||||
AVProgram *program = NULL;
|
||||
AVProgram *program;
|
||||
|
||||
if (v->n_segments == 0)
|
||||
continue;
|
||||
|
||||
@ -582,7 +583,6 @@ static int hls_read_header(AVFormatContext *s)
|
||||
goto fail;
|
||||
snprintf(bitrate_str, sizeof(bitrate_str), "%d", v->bandwidth);
|
||||
|
||||
/* Create new AVprogram for variant i */
|
||||
program = av_new_program(s, i);
|
||||
if (!program)
|
||||
goto fail;
|
||||
|
Loading…
Reference in New Issue
Block a user