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:
Michael Niedermayer 2013-07-29 14:31:38 +02:00
commit 994e09345e

View File

@ -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;