On 09/20/2012 03:51 AM, Luca Barbato wrote:
> diff --git a/libavformat/oggparseflac.c b/libavformat/oggparseflac.c
> index 9860a0e..c4928d0 100644
> --- a/libavformat/oggparseflac.c
> +++ b/libavformat/oggparseflac.c
> @@ -88,11 +88,13 @@ old_flac_header (AVFormatContext * s, int idx)
>  const struct ogg_codec ff_flac_codec = {
>      .magic = "\177FLAC",
>      .magicsize = 5,
> -    .header = flac_header
> +    .header = flac_header,
> +    .nb_header = 2,
>  };

According to the ogg-flac mapping documentation:

"The first packet is followed by one or more header packets. Each such
packet will contain a single native FLAC metadata block. The first of
these must be a VORBIS_COMMENT block. These packets may span page
boundaries but the last will finish the page on which it ends, so that
the first audio packet begins a page."

This seems to suggest that there can be more than 2 headers.

-Justin
_______________________________________________
libav-devel mailing list
libav-devel@libav.org
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to