mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-20 22:28:22 +00:00
qtmux: use caps bitrate at last chance
If we didn't get the stream's bitrate from one of the atoms, try getting it from the caps as a last resort. https://bugzilla.gnome.org/show_bug.cgi?id=625496
This commit is contained in:
parent
2e17f7cbf7
commit
691901da51
1 changed files with 5 additions and 0 deletions
|
@ -2318,6 +2318,11 @@ gst_qt_mux_video_sink_set_caps (GstPad * pad, GstCaps * caps)
|
|||
} else if (strcmp (mimetype, "video/x-h264") == 0) {
|
||||
entry.fourcc = FOURCC_avc1;
|
||||
qtpad->is_out_of_order = TRUE;
|
||||
if (qtpad->avg_bitrate == 0) {
|
||||
gint avg_bitrate = 0;
|
||||
gst_structure_get_int (structure, "bitrate", &avg_bitrate);
|
||||
qtpad->avg_bitrate = avg_bitrate;
|
||||
}
|
||||
ext_atom = build_btrt_extension (0, qtpad->avg_bitrate, qtpad->max_bitrate);
|
||||
if (ext_atom != NULL)
|
||||
ext_atom_list = g_list_prepend (ext_atom_list, ext_atom);
|
||||
|
|
Loading…
Reference in a new issue