mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-28 22:10:34 +00:00
oggdec: print error on failure to create streams
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
251ce23165
commit
a6bb09fc1a
@ -271,8 +271,10 @@ static int ogg_read_page(AVFormatContext *s, int *str)
|
||||
} else {
|
||||
idx = ogg_new_stream(s, serial, 1);
|
||||
}
|
||||
if (idx < 0)
|
||||
if (idx < 0) {
|
||||
av_log (s, AV_LOG_ERROR, "failed to create stream (OOM?)\n");
|
||||
return idx;
|
||||
}
|
||||
}
|
||||
|
||||
os = ogg->streams + idx;
|
||||
|
Loading…
Reference in New Issue
Block a user