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:
authorLuca Barbato <lu_zero@gentoo.org>2012-09-20 03:01:43 +0400
committerLuca Barbato <lu_zero@gentoo.org>2012-09-25 00:35:29 +0400
commit7751e4693dd10ec98c20fbd9887233b575034272 (patch)
tree54e3ad95d7c65d7b44f937b87d1628b737aa56e3 /libavformat/oggparseflac.c
parenta716006a7d6371a8f124be49d7ce59bcc28f9e53 (diff)
ogg: check that the expected number of headers had been parsed
Not having the header for a codec is a tell-tale of a broken file.
Diffstat (limited to 'libavformat/oggparseflac.c')
-rw-r--r--libavformat/oggparseflac.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/libavformat/oggparseflac.c b/libavformat/oggparseflac.c
index 9860a0eb97..f59b4008dc 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,
};
const struct ogg_codec ff_old_flac_codec = {
.magic = "fLaC",
.magicsize = 4,
- .header = old_flac_header
+ .header = old_flac_header,
+ .nb_header = 0,
};