mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-23 07:38:16 +00:00
x264enc: set annexb=1 in byte stream mode when downstream has ANY caps
This matches what is done when downstream caps are not ANY, and fixes prerolling in byte stream mode when typefind is downstream.
This commit is contained in:
parent
2c5ba12f28
commit
5f075f3361
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue