summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-05-04 13:53:57 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-05-04 14:40:22 +0200
commita6bb09fc1a9a3e513725d325634866796cdaeda4 (patch)
tree127cec90547cda46be78f1eec2ea269f99622587
parent251ce231659333ad126e1f72c34c348551f3f2ef (diff)
downloadffmpeg-streaming-a6bb09fc1a9a3e513725d325634866796cdaeda4.zip
ffmpeg-streaming-a6bb09fc1a9a3e513725d325634866796cdaeda4.tar.gz
oggdec: print error on failure to create streams
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavformat/oggdec.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libavformat/oggdec.c b/libavformat/oggdec.c
index d9a30c4..8decb62 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;
OpenPOWER on IntegriCloud