From de327bf45bbf5fad4854ce6447c99b1f3e80ac80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Zanelli?= Date: Thu, 9 Oct 2014 15:05:55 +0200 Subject: [PATCH] vc1parser: fix level values for simple/main profile In simple profile, level set to 0 or 2 indicate low and medium level respectively. In main profile, level set to 0, 2 or 4 indicate low, medium and high level respectively. Level values are defined in Annex J.1.2 of the SMPTE 421M. https://bugzilla.gnome.org/show_bug.cgi?id=738230 --- gst-libs/gst/codecparsers/gstvc1parser.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gst-libs/gst/codecparsers/gstvc1parser.h b/gst-libs/gst/codecparsers/gstvc1parser.h index e2720d770a..a73ff9d14c 100644 --- a/gst-libs/gst/codecparsers/gstvc1parser.h +++ b/gst-libs/gst/codecparsers/gstvc1parser.h @@ -84,8 +84,8 @@ typedef enum typedef enum { GST_VC1_LEVEL_LOW = 0, /* Simple/Main profile low level */ - GST_VC1_LEVEL_MEDIUM = 1, /* Simple/Main profile medium level */ - GST_VC1_LEVEL_HIGH = 2, /* Main profile high level */ + GST_VC1_LEVEL_MEDIUM = 2, /* Simple/Main profile medium level */ + GST_VC1_LEVEL_HIGH = 4, /* Main profile high level */ GST_VC1_LEVEL_L0 = 0, /* Advanced profile level 0 */ GST_VC1_LEVEL_L1 = 1, /* Advanced profile level 1 */