Skip to content

Commit

Permalink
Fix bad audio metadata (issues #73)
Browse files Browse the repository at this point in the history
  • Loading branch information
Steve McFarlin authored and MathieuDuponchelle committed Aug 3, 2023
1 parent 79fbffc commit 7c71669
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gstcefdemux.cc
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,9 @@ gst_cef_demux_push_audio_buffer (GstBuffer **buffer, guint idx, AudioPushData *p
GST_BUFFER_DTS (*buffer) = push_data->demux->last_audio_time;
GST_BUFFER_PTS (*buffer) = push_data->demux->last_audio_time;

gst_buffer_add_audio_meta (*buffer, &push_data->demux->audio_info, gst_buffer_get_size (*buffer), NULL);
gst_buffer_add_audio_meta (*buffer, &push_data->demux->audio_info,
gst_buffer_get_size (*buffer) / GST_AUDIO_INFO_BPS (&push_data->demux->audio_info),
NULL);

GST_BUFFER_FLAG_UNSET (*buffer, GST_BUFFER_FLAG_DISCONT);
if (push_data->demux->need_discont) {
Expand Down

0 comments on commit 7c71669

Please sign in to comment.