1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-11-23 21:54:53 +02:00

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.
This commit is contained in:
Luca Barbato
2012-09-20 01:01:43 +02:00
parent a716006a7d
commit 7751e4693d
10 changed files with 34 additions and 5 deletions

View File

@@ -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;
};