x264enc: set annexb=1 in byte stream mode when downstream has ANY caps
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Mon, 2 Feb 2015 14:13:10 +0000 (14:13 +0000)
committerVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Mon, 2 Feb 2015 14:28:33 +0000 (14:28 +0000)
This matches what is done when downstream caps are not ANY, and fixes
prerolling in byte stream mode when typefind is downstream.

ext/x264/gstx264enc.c

index dd37c70..0cc0528 100644 (file)
@@ -1796,6 +1796,7 @@ gst_x264_enc_set_format (GstVideoEncoder * video_enc,
     GST_INFO_OBJECT (encoder,
         "downstream has ANY caps, outputting byte-stream");
     encoder->current_byte_stream = GST_X264_ENC_STREAM_FORMAT_BYTE_STREAM;
+    g_string_append_printf (encoder->option_string, ":annexb=1");
   } else if (allowed_caps) {
     GstStructure *s;
     const gchar *profile;