You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-11-06 08:29:25 +02:00
ogg: relax demuxer conformance checks
Some samples in the wild are missing headers that are expected by the specification but in practice do not affect decoding.
This commit is contained in:
@@ -478,7 +478,10 @@ static int ogg_get_headers(AVFormatContext *s)
|
||||
if (os->codec && os->codec->nb_header &&
|
||||
os->nb_header < os->codec->nb_header) {
|
||||
av_log(s, AV_LOG_ERROR,
|
||||
"Headers mismatch for stream %d\n", i);
|
||||
"Headers mismatch for stream %d: "
|
||||
"expected %d received %d.\n",
|
||||
i, os->codec->nb_header, os->nb_header);
|
||||
if (s->error_recognition & AV_EF_EXPLODE)
|
||||
return AVERROR_INVALIDDATA;
|
||||
}
|
||||
if (os->start_granule != OGG_NOGRANULE_VALUE)
|
||||
|
||||
Reference in New Issue
Block a user