mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-26 17:32:06 +00: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];
|
struct variant *v = c->variants[i];
|
||||||
AVInputFormat *in_fmt = NULL;
|
AVInputFormat *in_fmt = NULL;
|
||||||
char bitrate_str[20];
|
char bitrate_str[20];
|
||||||
AVProgram *program = NULL;
|
AVProgram *program;
|
||||||
|
|
||||||
if (v->n_segments == 0)
|
if (v->n_segments == 0)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
@ -582,7 +583,6 @@ static int hls_read_header(AVFormatContext *s)
|
|||||||
goto fail;
|
goto fail;
|
||||||
snprintf(bitrate_str, sizeof(bitrate_str), "%d", v->bandwidth);
|
snprintf(bitrate_str, sizeof(bitrate_str), "%d", v->bandwidth);
|
||||||
|
|
||||||
/* Create new AVprogram for variant i */
|
|
||||||
program = av_new_program(s, i);
|
program = av_new_program(s, i);
|
||||||
if (!program)
|
if (!program)
|
||||||
goto fail;
|
goto fail;
|
||||||
|
Loading…
Reference in New Issue
Block a user