Browse Source

avformat/hlsenc: fix stream level metadata handling

hls-encoder currenlty does not provide stream level metadata to mpegts
muxer. This patch fixes track #3848 bug.

Signed-off-by: Bela Bodecs <bodecsb@vivanet.hu>
Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
tags/n3.3
Bela Bodecs Steven Liu 9 years ago
parent
commit
2b9f92fcc5
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      libavformat/hlsenc.c

+ 1
- 0
libavformat/hlsenc.c View File

@@ -450,6 +450,7 @@ static int hls_mux_init(AVFormatContext *s)
avcodec_parameters_copy(st->codecpar, s->streams[i]->codecpar);
st->sample_aspect_ratio = s->streams[i]->sample_aspect_ratio;
st->time_base = s->streams[i]->time_base;
av_dict_copy(&st->metadata, s->streams[i]->metadata, 0);
}
hls->start_pos = 0;
hls->new_start = 1;


Loading…
Cancel
Save