MBAFF interlaced coding is not allowed in baseline profile
authorJason Garrett-Glaser <darkshikari@gmail.com>
Tue, 31 Mar 2009 17:34:35 +0000 (10:34 -0700)
committerJason Garrett-Glaser <darkshikari@gmail.com>
Tue, 31 Mar 2009 17:36:42 +0000 (10:36 -0700)
encoder/set.c

index 5ec1d66..3103fcd 100644 (file)
@@ -83,7 +83,7 @@ void x264_sps_init( x264_sps_t *sps, int i_id, x264_param_t *param )
         sps->i_profile_idc  = PROFILE_HIGH444_PREDICTIVE;
     else if( param->analyse.b_transform_8x8 || param->i_cqm_preset != X264_CQM_FLAT )
         sps->i_profile_idc  = PROFILE_HIGH;
-    else if( param->b_cabac || param->i_bframe > 0 )
+    else if( param->b_cabac || param->i_bframe > 0 || param->b_interlaced )
         sps->i_profile_idc  = PROFILE_MAIN;
     else
         sps->i_profile_idc  = PROFILE_BASELINE;