[FFmpeg-devel] [PATCH] avformat/hls: inherite AVInputFormat.flags from underlying demuxer
Zhang Rui
bbcallen at gmail.com
Wed Jul 17 17:41:52 CEST 2013
2013/7/17 Michael Niedermayer <michaelni at gmx.at>:
> On Wed, Jul 17, 2013 at 11:16:55AM +0800, Zhang Rui wrote:
>> >> + s->iformat->flags |= (in_fmt->flags & AVFMT_TS_DISCONT);
>> >
>> > s->iformat is shared between demuxers, it thus cannot be changed
>>
>> Hmm. So ff_hls_demuxer is the only place where this flag can be set?
>
> yes or have 2 such structs one with and one without
> or we would have to move the flag to the AVFormatContext
Since mpegts is always used, maybe 1 struct with AVFMT_TS_DISCONT
is enough for now?
>> AVInputFormat ff_hls_demuxer = {
>> .name = "hls,applehttp",
>> ...
>> .flags = AVFMT_TS_DISCONT,
>> }
More information about the ffmpeg-devel
mailing list