From 1fe94ea79eb749ea4978596d34d76421272288ea Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Sun, 1 Feb 2015 20:00:02 -0500 Subject: vorbis: parse out setup headers as well Prevents an 'Invalid packet' message. Currently mid-stream setup packets are ignored. Theoretically, they could, based on the specification, be used to reinitialize the stream if parameters change, but I don't expect that to be common (and no one seems to have asked for it). Signed-off-by: Ben Boeckel Signed-off-by: Michael Niedermayer --- libavcodec/vorbis_parser.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libavcodec/vorbis_parser.c') diff --git a/libavcodec/vorbis_parser.c b/libavcodec/vorbis_parser.c index 547fd47098..8fa6d99588 100644 --- a/libavcodec/vorbis_parser.c +++ b/libavcodec/vorbis_parser.c @@ -229,6 +229,8 @@ int av_vorbis_parse_frame_flags(AVVorbisParseContext *s, const uint8_t *buf, *flags |= VORBIS_FLAG_HEADER; else if (buf[0] == 3) *flags |= VORBIS_FLAG_COMMENT; + else if (buf[0] == 5) + *flags |= VORBIS_FLAG_SETUP; else goto bad_packet; -- cgit v1.2.3