[FFmpeg-devel] [PATCH] hls, libstagefright

Ganesh Ajjanagadde gajjanag at mit.edu
Wed Sep 23 16:25:34 CEST 2015


On Wed, Sep 23, 2015 at 7:09 AM, Michael Niedermayer <michaelni at gmx.at> wrote:
> 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

Unrelated, but perhaps of interest more generally:
https://en.wikipedia.org/wiki/Stagefright_%28bug%29 - this made a big
splash as a security vulnerability.

>
> 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.
>
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>


More information about the ffmpeg-devel mailing list