Commit a6bb09fc authored by Michael Niedermayer's avatar Michael Niedermayer

oggdec: print error on failure to create streams

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 251ce231
......@@ -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;
......
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