muxer is not yet fully compliant so prevent people from mistakenly using it
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 10 Aug 2007 00:11:36 +0000 (00:11 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 10 Aug 2007 00:11:36 +0000 (00:11 +0000)
while believing it already is

Originally committed as revision 10042 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/nutenc.c

index e2e9252..2617c74 100644 (file)
@@ -335,6 +335,10 @@ static int write_header(AVFormatContext *s){
     ByteIOContext *bc = &s->pb;
     int i, j;
 
+    if(s->streams[0]->codec->strict_std_compliance > FF_COMPLIANCE_EXPERIMENTAL){
+        return -1;
+    }
+
     nut->avf= s;
 
     nut->stream   = av_mallocz(sizeof(StreamContext)*s->nb_streams);