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:
Martin Pulec
2014-02-28 16:40:52 +01:00
parent 813d56ba92
commit 5ff9ed3ff3

View File

@@ -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;