rtpenc_aac: Fix sending fragmented frames
authorMartin Storsjö <martin@martin.st>
Wed, 25 Feb 2015 21:55:58 +0000 (23:55 +0200)
committerMartin Storsjö <martin@martin.st>
Sat, 28 Feb 2015 20:53:38 +0000 (22:53 +0200)
commit98563953442560dd83aab938f86de3e5a22a891f
treef94ff14e556f9ca26af0e6ea4baadebfb75429aa
parent990e4a6639d0714198583c2812b1074b5751898f
rtpenc_aac: Fix sending fragmented frames

After sending a fragmented frame, len (s->buf_ptr - s->buf) isn't
zero, while s->num_frames is zero as intended. Using s->num_frames
makes it work as intended, and is less convoluted than keeping track
of (resetting) s->buf_ptr.

This avoids sending stray data after sending a fragmented aac packet.

CC: libav-stable@libav.org
Signed-off-by: Martin Storsjö <martin@martin.st>
libavformat/rtpenc_aac.c