diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-05-04 15:53:57 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-05-04 16:40:22 +0400 |
commit | a6bb09fc1a9a3e513725d325634866796cdaeda4 (patch) | |
tree | 127cec90547cda46be78f1eec2ea269f99622587 /libavformat/oggdec.c | |
parent | 251ce231659333ad126e1f72c34c348551f3f2ef (diff) |
oggdec: print error on failure to create streams
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/oggdec.c')
-rw-r--r-- | libavformat/oggdec.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libavformat/oggdec.c b/libavformat/oggdec.c index d9a30c423b..8decb62651 100644 --- a/libavformat/oggdec.c +++ b/libavformat/oggdec.c @@ -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; |