mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-22 00:06:36 +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_INFO_OBJECT (dec, "consumed %d bytes", consumed);
|
||||
|
||||
if (consumed <= 0)
|
||||
break;
|
||||
if (consumed <= 0) {
|
||||
offset += sbc_get_frame_length (&dec->sbc);
|
||||
continue;
|
||||
}
|
||||
|
||||
rate = gst_sbc_parse_rate_from_sbc (dec->sbc.frequency);
|
||||
channels = gst_sbc_get_channel_number (dec->sbc.mode);
|
||||
|
|
Loading…
Reference in a new issue