Do not fail for mixed interlaced / non-interlaced YUV4MPEG streams.
authorCarl Eugen Hoyos <cehoyos@ag.or.at>
Fri, 1 Feb 2013 22:55:54 +0000 (23:55 +0100)
committerCarl Eugen Hoyos <cehoyos@ag.or.at>
Fri, 1 Feb 2013 23:01:48 +0000 (00:01 +0100)
libavformat/yuv4mpeg.c

index ff039bd..e2ab8e3 100644 (file)
@@ -442,7 +442,7 @@ static int yuv4_read_header(AVFormatContext *s)
             case 'm':
                 av_log(s, AV_LOG_ERROR, "YUV4MPEG stream contains mixed "
                        "interlaced and non-interlaced frames.\n");
-                return -1;
+                break;
             default:
                 av_log(s, AV_LOG_ERROR, "YUV4MPEG has invalid header.\n");
                 return -1;