Commit 4c273eb6 authored by Michael Niedermayer's avatar Michael Niedermayer

oggdec: print a warning if the number of headers mismatch expectations.

This is based on:
	commit 7751e469
	Author: Luca Barbato <lu_zero@gentoo.org>
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent cc4deafe
......@@ -600,11 +600,16 @@ static int ogg_read_header(AVFormatContext *s)
} while (!ogg->headers);
av_dlog(s, "found headers\n");
for (i = 0; i < ogg->nstreams; i++)
for (i = 0; i < ogg->nstreams; i++) {
struct ogg_stream *os = ogg->streams + i;
if (ogg->streams[i].header < 0) {
av_log(s, AV_LOG_ERROR, "Header parsing failed for stream %d\n", i);
ogg->streams[i].codec = NULL;
} else if (os->codec && os->nb_header < os->codec->nb_header) {
av_log(s, AV_LOG_WARNING, "Number of headers (%d) mismatch for stream %d\n", os->nb_header, i);
}
}
//linear granulepos seek from end
ogg_get_length (s);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment