avformat/oggparsevorbis: return proper error code from vorbis_header()
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 6 Nov 2014 12:01:06 +0000 (13:01 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 6 Nov 2014 12:01:06 +0000 (13:01 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/oggparsevorbis.c

index dd67130..87b8190 100644 (file)
@@ -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;
         }
     }