[vlc-devel] [PATCH] hds: Ignore sentinel value at the end of the fragment table

Tristan Matthews le.businessman at gmail.com
Tue Oct 7 15:51:42 CEST 2014


On Mon, Oct 6, 2014 at 1:12 PM, Antti Ajanki <antti.ajanki at iki.fi> wrote:

> generate_new_chunk() never proceed to the last fragment run if the
> sentinel is included.
> ---
>  modules/stream_filter/hds/hds.c |    9 +++++++++
>  1 file changed, 9 insertions(+)
>
> diff --git a/modules/stream_filter/hds/hds.c
> b/modules/stream_filter/hds/hds.c
> index ff7d7a6..1831d71 100644
> --- a/modules/stream_filter/hds/hds.c
> +++ b/modules/stream_filter/hds/hds.c
> @@ -430,6 +430,15 @@ static uint8_t* parse_afrt( vlc_object_t* p_this,
>          s->fragment_run_count++;
>      }
>
> +    if ( s->fragment_runs[s->fragment_run_count-1].fragment_number_start
> == 0 &&
> +         s->fragment_runs[s->fragment_run_count-1].fragment_timestamp ==
> 0 &&
> +         s->fragment_runs[s->fragment_run_count-1].fragment_duration == 0
> &&
> +         s->fragment_runs[s->fragment_run_count-1].discont == 0 )
> +    {
> +        /* ignore sentinel value */
> +        s->fragment_run_count--;
> +    }
> +
>      return data_p;
>  }
>
>
Applied, thanks.

Best,
Tristan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20141007/0365787d/attachment.html>


More information about the vlc-devel mailing list