Commit 6f0a8296 authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit '12b34599'

* commit '12b34599':
  rtpenc_amr: Use s->num_frames instead of s->buf_ptr - s->buf
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents f6f1e1a7 12b34599
......@@ -36,7 +36,7 @@ void ff_rtp_send_amr(AVFormatContext *s1, const uint8_t *buff, int size)
/* Test if the packet must be sent. */
len = s->buf_ptr - s->buf;
if (s->num_frames == s->max_frames_per_packet || (len && len + size - 1 > s->max_payload_size)) {
if (s->num_frames == s->max_frames_per_packet || (s->num_frames && len + size - 1 > s->max_payload_size)) {
int header_size = s->num_frames + 1;
p = s->buf + max_header_toc_size - header_size;
if (p != 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