x264enc: fix the build for older x264enc
authorStefan Sauer <ensonic@google.com>
Tue, 19 Jul 2011 13:06:49 +0000 (15:06 +0200)
committerStefan Sauer <ensonic@google.com>
Tue, 19 Jul 2011 13:10:49 +0000 (15:10 +0200)
b_fake_interlaced was introduced in x264 commit 1b48874d06 = X264_BUILD 96.

ext/x264/gstx264enc.c

index 30d0b90..08c930b 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
     }
   }