[FFmpeg-devel] [PATCH] RTP depacketizer for AMR
Ronald S. Bultje
Wed Jan 27 21:32:50 CET 2010
On Wed, Jan 27, 2010 at 3:16 PM, Martin Storsj? <martin at martin.st> wrote:
> With url_open_dyn_packet_buf, wouldn't I have to allocate a new one each
> time, write the RTP packet to be buffered into it, then url_close_dyn_buf
> to get the pointer to the buffered data, then free it after using it? To
> me, that feels like an awful lot of extra overhead compared to keeping one
> single buffer and just reallocating it if a bigger one is needed.
It prevents the memcpy() to the packet buffer... Don't forget
av_new_packet() allocs a new buffer anyway.
More information about the ffmpeg-devel