mirror of
https://github.com/outbackdingo/UltraGrid.git
synced 2026-03-22 10:40:25 +00:00
Pbuf: accept frame for audio only if m-bit present
In audio decoder, packet with m-bit determines number of channels (according to the substream number).
This commit is contained in:
@@ -451,7 +451,7 @@ audio_pbuf_decode(struct pbuf *playout_buf, struct timeval curr_time,
|
||||
UNUSED(curr_time);
|
||||
if (!curr->decoded // && tv_gt(curr_time, curr->playout_time)
|
||||
) {
|
||||
if (frame_complete(curr)) {
|
||||
if (curr->mbit == 1) {
|
||||
int ret = decode_func(curr->cdata, data);
|
||||
curr->decoded = 1;
|
||||
return ret;
|
||||
|
||||
Reference in New Issue
Block a user