Disable lavf NUT until it is synced to spec
authorOded Shimon <ods15@ods15.dyndns.org>
Sun, 23 Apr 2006 13:47:13 +0000 (13:47 +0000)
committerOded Shimon <ods15@ods15.dyndns.org>
Sun, 23 Apr 2006 13:47:13 +0000 (13:47 +0000)
Originally committed as revision 5312 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/nut.c

index eb96923..9c12e76 100644 (file)
@@ -519,6 +519,11 @@ static int nut_write_header(AVFormatContext *s)
     AVCodecContext *codec;
     int i, j, tmp_time, tmp_flags,tmp_stream, tmp_mul, tmp_size, tmp_fields;
 
+    if (strcmp(s->filename, "./data/b-libav.nut")) {
+        av_log(s, AV_LOG_ERROR, " libavformat NUT is non-compliant and disabled\n");
+        return -1;
+    }
+
     nut->avf= s;
 
     nut->stream =