[FFmpeg-cvslog] avformat/oggparsevorbis: return proper error code from vorbis_header()

Michael Niedermayer git at videolan.org
Thu Nov 6 13:07:54 CET 2014


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu Nov  6 13:01:06 2014 +0100| [4b2763cd1354484b7ddec95e6509869d906f3b69] | committer: Michael Niedermayer

avformat/oggparsevorbis: return proper error code from vorbis_header()

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=4b2763cd1354484b7ddec95e6509869d906f3b69
---

 libavformat/oggparsevorbis.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/oggparsevorbis.c b/libavformat/oggparsevorbis.c
index dd67130..87b8190 100644
--- a/libavformat/oggparsevorbis.c
+++ b/libavformat/oggparsevorbis.c
@@ -392,7 +392,7 @@ static int vorbis_header(AVFormatContext *s, int idx)
         if (!priv->vp) {
             av_freep(&st->codec->extradata);
             st->codec->extradata_size = 0;
-            return ret;
+            return AVERROR_UNKNOWN;
         }
     }
 



More information about the ffmpeg-cvslog mailing list