Browse Source

oggdec: print error on failure to create streams

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n0.11
Michael Niedermayer 13 years ago
parent
commit
a6bb09fc1a
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      libavformat/oggdec.c

+ 3
- 1
libavformat/oggdec.c View File

@@ -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…
Cancel
Save