]> git.videolan.org Git - x264.git/commitdiff
Eradicate all mention of Extended Profile
authorHenrik Gramner <hengar-6@student.ltu.se>
Thu, 12 Apr 2012 17:14:43 +0000 (19:14 +0200)
committerJason Garrett-Glaser <jason@x264.com>
Mon, 23 Apr 2012 20:28:45 +0000 (13:28 -0700)
x264 never supported it and never will because nobody uses it.

common/set.h
encoder/encoder.c
encoder/set.c

index d68e8bf8821910eb9a319caf90bbb0ea6d216985..62f0dc630f8b5cca905520da4b0acc49061610b0 100644 (file)
@@ -31,7 +31,6 @@ enum profile_e
 {
     PROFILE_BASELINE = 66,
     PROFILE_MAIN     = 77,
-    PROFILE_EXTENDED = 88,
     PROFILE_HIGH    = 100,
     PROFILE_HIGH10  = 110,
     PROFILE_HIGH422 = 122,
index eff188da30df40e79107f3946772bcae2082eef9..7fb397201ccf90b6399fa42a44f8ba162aa66e94 100644 (file)
@@ -1346,7 +1346,7 @@ x264_t *x264_encoder_open( x264_param_t *param )
     char level[4];
     snprintf( level, sizeof(level), "%d.%d", h->sps->i_level_idc/10, h->sps->i_level_idc%10 );
     if( h->sps->i_level_idc == 9 || ( h->sps->i_level_idc == 11 && h->sps->b_constraint_set3 &&
-        (h->sps->i_profile_idc >= PROFILE_BASELINE && h->sps->i_profile_idc <= PROFILE_EXTENDED) ) )
+        (h->sps->i_profile_idc == PROFILE_BASELINE || h->sps->i_profile_idc == PROFILE_MAIN) ) )
         strcpy( level, "1b" );
 
     if( h->sps->i_profile_idc < PROFILE_HIGH10 )
index e752a52e19bdac3ed23fc0b8d4a07202acd30915..0612ba4294b324225294d7984cb2f28f1fc444f2 100644 (file)
@@ -130,9 +130,9 @@ void x264_sps_init( x264_sps_t *sps, int i_id, x264_param_t *param )
     sps->b_constraint_set3  = 0;
 
     sps->i_level_idc = param->i_level_idc;
-    if( param->i_level_idc == 9 && ( sps->i_profile_idc >= PROFILE_BASELINE && sps->i_profile_idc <= PROFILE_EXTENDED ) )
+    if( param->i_level_idc == 9 && ( sps->i_profile_idc == PROFILE_BASELINE || sps->i_profile_idc == PROFILE_MAIN ) )
     {
-        sps->b_constraint_set3 = 1; /* level 1b with Baseline, Main or Extended profile is signalled via constraint_set3 */
+        sps->b_constraint_set3 = 1; /* level 1b with Baseline or Main profile is signalled via constraint_set3 */
         sps->i_level_idc      = 11;
     }
     /* Intra profiles */