mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-10 17:35:59 +00:00
rtpmparobustdepay: set correct data_size for generated dummy frame
... which prevents getting stuck in a loop if such one is needed.
This commit is contained in:
parent
3e1832f5a4
commit
1547fdbe5a
1 changed files with 1 additions and 1 deletions
|
@ -282,7 +282,7 @@ gst_rtp_mpa_robust_depay_generate_dummy_frame (GstRtpMPARobustDepay *
|
|||
dummy->size =
|
||||
mp3_type_frame_length_from_header (GST_ELEMENT_CAST (rtpmpadepay),
|
||||
dummy->header, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
|
||||
dummy->data_size = dummy->size - dummy->side_info;
|
||||
dummy->data_size = dummy->size - 4 - dummy->side_info;
|
||||
dummy->backpointer = 0;
|
||||
|
||||
dummy->buffer = gst_buffer_new_and_alloc (dummy->side_info + 4);
|
||||
|
|
Loading…
Reference in a new issue