[FFmpeg-cvslog] oggdec: print error when headers couldnt be parses successfully
Michael Niedermayer
git at videolan.org
Tue Sep 25 15:41:55 CEST 2012
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Sep 25 15:22:05 2012 +0200| [cc4deafed1cf78224ee760f5e3be31922396fb28] | committer: Michael Niedermayer
oggdec: print error when headers couldnt be parses successfully
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=cc4deafed1cf78224ee760f5e3be31922396fb28
---
libavformat/oggdec.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/libavformat/oggdec.c b/libavformat/oggdec.c
index 617bc3a..f565f7e 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);
More information about the ffmpeg-cvslog
mailing list