[FFmpeg-devel] [PATCH 2/3] avformat/webvttdec: Don't stop parsing on comments
Clément Bœsch
u at pkh.me
Mon Oct 12 22:23:35 CEST 2015
On Sun, Oct 11, 2015 at 05:11:02PM +0100, Ricardo Constantino wrote:
> Signed-off-by: Ricardo Constantino <wiiaboo at gmail.com>
> ---
> libavformat/webvttdec.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/libavformat/webvttdec.c b/libavformat/webvttdec.c
> index 43c2a63..47a3255 100644
> --- a/libavformat/webvttdec.c
> +++ b/libavformat/webvttdec.c
> @@ -92,7 +92,8 @@ static int webvtt_read_header(AVFormatContext *s)
>
> /* ignore header chunk */
> if (!strncmp(p, "\xEF\xBB\xBFWEBVTT", 9) ||
> - !strncmp(p, "WEBVTT", 6))
> + !strncmp(p, "WEBVTT", 6) ||
> + !strncmp(p, "NOTE", 4))
> continue;
>
Applied, thanks
--
Clément B.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20151012/b060ce8b/attachment.sig>
More information about the ffmpeg-devel
mailing list