diff options
author | Luca Barbato <lu_zero@gentoo.org> | 2012-09-20 01:01:43 +0200 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2012-09-24 22:35:29 +0200 |
commit | 7751e4693dd10ec98c20fbd9887233b575034272 (patch) | |
tree | 54e3ad95d7c65d7b44f937b87d1628b737aa56e3 /libavformat/oggdec.h | |
parent | a716006a7d6371a8f124be49d7ce59bcc28f9e53 (diff) | |
download | ffmpeg-7751e4693dd10ec98c20fbd9887233b575034272.tar.gz |
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/oggdec.h')
-rw-r--r-- | libavformat/oggdec.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libavformat/oggdec.h b/libavformat/oggdec.h index 184a628622..fa8a5bc29a 100644 --- a/libavformat/oggdec.h +++ b/libavformat/oggdec.h @@ -51,6 +51,10 @@ struct ogg_codec { * 0 if granule is the end time of the associated packet. */ int granule_is_start; + /** + * Number of expected headers + */ + int nb_header; }; struct ogg_stream { @@ -75,6 +79,7 @@ struct ogg_stream { int incomplete; ///< whether we're expecting a continuation in the next page int page_end; ///< current packet is the last one completed in the page int keyframe_seek; + int nb_header; ///< set to the number of parsed headers void *private; }; |