Commit 635403e0 authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit '9c9b0218'

* commit '9c9b0218':
  rtpenc_aac: Merge a definition with a declaration
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents cfe33c98 9c9b0218
......@@ -25,16 +25,15 @@
void ff_rtp_send_aac(AVFormatContext *s1, const uint8_t *buff, int size)
{
RTPMuxContext *s = s1->priv_data;
int len, max_packet_size;
uint8_t *p;
const int max_au_headers_size = 2 + 2 * s->max_frames_per_packet;
int len, max_packet_size = s->max_payload_size - max_au_headers_size;
uint8_t *p;
/* skip ADTS header, if present */
if ((s1->streams[0]->codec->extradata_size) == 0) {
size -= 7;
buff += 7;
}
max_packet_size = s->max_payload_size - max_au_headers_size;
/* test if the packet must be sent */
len = (s->buf_ptr - s->buf);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment