[FFmpeg-devel] [PATCH 2/2] avformat/matroskadec: remove the strict unofficial check for Colour elements

James Almer jamrial at gmail.com
Mon Dec 5 04:36:06 EET 2016


Signed-off-by: James Almer <jamrial at gmail.com>
---
 libavformat/matroskadec.c | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c
index b53a8b1..c7b406e 100644
--- a/libavformat/matroskadec.c
+++ b/libavformat/matroskadec.c
@@ -2362,11 +2362,9 @@ static int matroska_parse_tracks(AVFormatContext *s)
                     return ret;
             }
 
-            if (s->strict_std_compliance <= FF_COMPLIANCE_UNOFFICIAL) {
-                int ret = mkv_parse_video_color(st, track);
-                if (ret < 0)
-                    return ret;
-            }
+            ret = mkv_parse_video_color(st, track);
+            if (ret < 0)
+                return ret;
         } else if (track->type == MATROSKA_TRACK_TYPE_AUDIO) {
             st->codecpar->codec_type  = AVMEDIA_TYPE_AUDIO;
             st->codecpar->codec_tag   = fourcc;
-- 
2.10.2



More information about the ffmpeg-devel mailing list