Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Boeckel <mathstuf@gmail.com>2015-02-02 04:00:02 +0300
committerMichael Niedermayer <michaelni@gmx.at>2015-02-02 05:11:49 +0300
commit1fe94ea79eb749ea4978596d34d76421272288ea (patch)
tree49fb890c9f23a418ee7b996b169be2bfe224a199 /libavcodec/vorbis_parser.c
parent17d87571c83177ca60527de8f8919ba5050158d5 (diff)
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 <mathstuf@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/vorbis_parser.c')
-rw-r--r--libavcodec/vorbis_parser.c2
1 files changed, 2 insertions, 0 deletions
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;