a2dp: set marker bit on AAC header

This commit is contained in:
Huang-Huang Bao 2021-04-10 04:49:29 +08:00
parent b874362c8e
commit 4292e8fe7e
No known key found for this signature in database
GPG key ID: 33C3271387A13D1B

View file

@ -442,6 +442,10 @@ static int codec_encode(void *data,
*dst_out = out_args.numOutBytes;
*need_flush = 1;
/* RFC6416: It is set to 1 to indicate that the RTP packet contains a complete
* audioMuxElement or the last fragment of an audioMuxElement */
this->header->m = 1;
return out_args.numInSamples * this->samplesize;
}