x264enc: fix the build for older x264enc
authorStefan Sauer <ensonic@google.com>
Tue, 19 Jul 2011 13:06:49 +0000 (15:06 +0200)
committerNikhil Devshatwar <a0132237@ti.com>
Fri, 17 May 2013 09:40:36 +0000 (15:10 +0530)
b_fake_interlaced was introduced in x264 commit 1b48874d06 = X264_BUILD 96.

ext/x264/gstx264enc.c

index 30d0b906dcfad9e15ab21e9d1ca301c03892399a..08c930b43b4cde2d2a58bc7ae9a860e98ffd1b3e 100644 (file)
@@ -1255,7 +1255,9 @@ gst_x264_enc_init_encoder (GstX264Enc * encoder)
 
     if (encoder->peer_level->frame_only) {
       encoder->x264param.b_interlaced = FALSE;
+#if X264_BUILD >= 95
       encoder->x264param.b_fake_interlaced = FALSE;
+#endif
     }
   }