[FFmpeg-devel] [PATCH] avformat/hls: inherite AVInputFormat.flags from underlying demuxer

Michael Niedermayer michaelni at gmx.at
Tue Jul 16 22:42:53 CEST 2013


On Tue, Jul 16, 2013 at 04:44:47PM +0800, Zhang Rui wrote:
> FFplay need flag AVFMT_TS_DISCONT to determain max_frame_duration.
> ---
>  libavformat/hls.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/libavformat/hls.c b/libavformat/hls.c
> index 95bbd45..95a65df 100644
> --- a/libavformat/hls.c
> +++ b/libavformat/hls.c
> @@ -581,6 +581,8 @@ static int hls_read_header(AVFormatContext *s)
>              goto fail;
>          snprintf(bitrate_str, sizeof(bitrate_str), "%d", v->bandwidth);
>  
> +        s->iformat->flags |= (in_fmt->flags & AVFMT_TS_DISCONT);

s->iformat  is shared between demuxers, it thus cannot be changed

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

There will always be a question for which you do not know the correct answer.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20130716/d38f531c/attachment.asc>


More information about the ffmpeg-devel mailing list