mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-23 23:21:06 +01:00
oggdec: print error when headers couldnt be parses successfully
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
46a35959d8
commit
cc4deafed1
1 changed files with 3 additions and 1 deletions
|
|
@ -601,8 +601,10 @@ static int ogg_read_header(AVFormatContext *s)
|
|||
av_dlog(s, "found headers\n");
|
||||
|
||||
for (i = 0; i < ogg->nstreams; i++)
|
||||
if (ogg->streams[i].header < 0)
|
||||
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;
|
||||
}
|
||||
|
||||
//linear granulepos seek from end
|
||||
ogg_get_length (s);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue