[FFmpeg-devel] [PATCH] hls, libstagefright
Michael Niedermayer
michaelni at gmx.at
Wed Sep 23 13:09:49 CEST 2015
On Wed, Sep 23, 2015 at 01:05:53PM +0800, 赵宇龙 wrote:
> From f5ff9a07a755123c259f6483fa3c55be1bb41abf Mon Sep 17 00:00:00 2001
> From: zylthinking <zylthinking at gmail.com>
> Date: Wed, 23 Sep 2015 12:55:27 +0800
> Subject: [PATCH] initialize duration of a living hls stream to an known
> value
>
> Signed-off-by: zylthinking <zylthinking at gmail.com>
> ---
> libavformat/hls.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/libavformat/hls.c b/libavformat/hls.c
> index adaa33a..23c541f 100644
> --- a/libavformat/hls.c
> +++ b/libavformat/hls.c
> @@ -1380,6 +1380,7 @@ static int hls_read_header(AVFormatContext *s)
>
> /* If this isn't a live stream, calculate the total duration of the
> * stream. */
> + s->duration = -1;
> if (c->variants[0]->playlists[0]->finished) {
> int64_t duration = 0;
> for (i = 0; i < c->variants[0]->playlists[0]->n_segments; i++)
can you explain why this does make a difference ?
[...]
> Subject: [PATCH] fix Stagefright_decode_frame may not exiting when source
> done
>
> Signed-off-by: zylthinking <zylthinking at gmail.com>
> ---
> libavcodec/libstagefright.cpp | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
patch applied
thanks
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
If a bugfix only changes things apparently unrelated to the bug with no
further explanation, that is a good sign that the bugfix is wrong.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20150923/423b7b8e/attachment.sig>
More information about the ffmpeg-devel
mailing list