]> git.sesse.net Git - vlc/commitdiff
x264: make sure b-pyramid ain't set other than high-profile
authorIlkka Ollakka <ileoo@videolan.org>
Tue, 25 May 2010 16:10:07 +0000 (19:10 +0300)
committerIlkka Ollakka <ileoo@videolan.org>
Tue, 25 May 2010 17:03:14 +0000 (20:03 +0300)
Reported by Lotesdelere

modules/codec/x264.c

index 972597ce8477c2e8717db207c4ce8ae45808af61..e291eaaa1270486ab9c4584f715fc9c52a7020bb 100644 (file)
@@ -1137,11 +1137,13 @@ static int  Open ( vlc_object_t *p_this )
             p_sys->param.b_cabac = 0;
             p_sys->param.i_bframe = 0;
             p_sys->param.analyse.i_weighted_pred = X264_WEIGHTP_NONE;
+            p_sys->param.i_bframe_pyramid = X264_B_PYRAMID_NONE;
         }
         else if (!strcasecmp( psz_val, "main" ) )
         {
             msg_Dbg( p_enc, "Limiting to main-profile");
             p_sys->param.analyse.b_transform_8x8 = 0;
+            p_sys->param.i_bframe_pyramid = X264_B_PYRAMID_NONE;
         }
         /* high profile don't restrict stuff*/
     }