aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-09-25 15:22:05 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-09-25 15:22:05 +0200
commitcc4deafed1cf78224ee760f5e3be31922396fb28 (patch)
tree52ffe59c47d01162d54fc7aeea8692a8a0533b2d /libavformat
parent46a35959d8c17f7ae272ca158d05e047d31e736c (diff)
downloadffmpeg-cc4deafed1cf78224ee760f5e3be31922396fb28.tar.gz
oggdec: print error when headers couldnt be parses successfully
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/oggdec.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libavformat/oggdec.c b/libavformat/oggdec.c
index 617bc3a986..f565f7e53d 100644
--- a/libavformat/oggdec.c
+++ b/libavformat/oggdec.c
@@ -601,8 +601,10 @@ static int ogg_read_header(AVFormatContext *s)
av_dlog(s, "found headers\n");
for (i = 0; i < ogg->nstreams; i++)
- if (ogg->streams[i].header < 0)
+ if (ogg->streams[i].header < 0) {
+ av_log(s, AV_LOG_ERROR, "Header parsing failed for stream %d\n", i);
ogg->streams[i].codec = NULL;
+ }
//linear granulepos seek from end
ogg_get_length (s);