mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-03 05:59:10 +00:00
sbc: sbcdec: skip the frame on decoding error
This commit is contained in:
parent
a559bb7060
commit
dcb57780ef
1 changed files with 4 additions and 2 deletions
|
@ -108,8 +108,10 @@ sbc_dec_chain (GstPad * pad, GstBuffer * buffer)
|
||||||
GST_BUFFER_DATA (output), codesize, NULL);
|
GST_BUFFER_DATA (output), codesize, NULL);
|
||||||
GST_INFO_OBJECT (dec, "consumed %d bytes", consumed);
|
GST_INFO_OBJECT (dec, "consumed %d bytes", consumed);
|
||||||
|
|
||||||
if (consumed <= 0)
|
if (consumed <= 0) {
|
||||||
break;
|
offset += sbc_get_frame_length (&dec->sbc);
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
rate = gst_sbc_parse_rate_from_sbc (dec->sbc.frequency);
|
rate = gst_sbc_parse_rate_from_sbc (dec->sbc.frequency);
|
||||||
channels = gst_sbc_get_channel_number (dec->sbc.mode);
|
channels = gst_sbc_get_channel_number (dec->sbc.mode);
|
||||||
|
|
Loading…
Reference in a new issue