From 5ff9ed3ff3bbefbc71084a671221619bc89caf53 Mon Sep 17 00:00:00 2001 From: Martin Pulec Date: Fri, 28 Feb 2014 16:40:52 +0100 Subject: [PATCH] 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). --- src/rtp/pbuf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rtp/pbuf.c b/src/rtp/pbuf.c index da7a19dde..dc6983375 100644 --- a/src/rtp/pbuf.c +++ b/src/rtp/pbuf.c @@ -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;