- 28 Feb, 2015 6 commits
-
-
Martin Storsjö authored
Instead check the timestamps while muxing, to avoid buffering a too long timestamp range into one single packet. This makes the AMR and AAC packetization slightly less efficient, since we set a possibly unnecessarily high max_frames_per_packet. (These packetizers end up doing a memmove of the TOC bytes if sending a packet before max_frames_per_packet is achieved, and we end up setting max_frames_per_packet to a value that should be high enough for most uses.) All packetizers that use max_frames_per_packet now set it either to a default value, or to a value calculated based on other parameters, so none of them rely on the previous default setting. For iLBC, copy one frame at a time, to allow checking the timestamp range for each of them - basically doing potentially multiple loops to simplify the code instead of trying to calculate the number of frames to buffer while honoring s1->max_delay. This is in preparation for reducing the coupling between libavformat and libavcodec, by not having the muxers use the encoder field frame_size (which may not be available during e.g. stream copy). Signed-off-by:
Martin Storsjö <martin@martin.st>
-
Martin Storsjö authored
Factorize out the s->num_frames check at the start of the if statements, simplifying adding more alternative causes for sending the buffered frames. Signed-off-by:
Martin Storsjö <martin@martin.st>
-
Martin Storsjö authored
This makes the code slightly more readable and understandable. Signed-off-by:
Martin Storsjö <martin@martin.st>
-
Martin Storsjö authored
Signed-off-by:
Martin Storsjö <martin@martin.st>
-
Martin Storsjö authored
This avoids having to conditionally set the default within the packetizer function. Signed-off-by:
Martin Storsjö <martin@martin.st>
-
Martin Storsjö authored
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>
-
- 08 Nov, 2012 2 commits
-
-
Luca Abeni authored
Previously the high end byte was always set to zero. Also get rid of an unnecessary multiplication (which in practice couldn't overflow) before shifting. Signed-off-by:
Martin Storsjö <martin@martin.st>
-
Luca Abeni authored
Fixes CID602564 Signed-off-by:
Michael Niedermayer <michaelni@gmx.at>
-
- 19 Mar, 2011 1 commit
-
-
Mans Rullgard authored
Signed-off-by:
Mans Rullgard <mans@mansr.com>
-
- 18 Jan, 2010 1 commit
-
-
Luca Abeni authored
rtpenc_*.c files. Originally committed as revision 21284 to svn://svn.ffmpeg.org/ffmpeg/trunk
-
- 29 May, 2009 1 commit
-
-
Luca Abeni authored
fragmented AAC frames Originally committed as revision 18984 to svn://svn.ffmpeg.org/ffmpeg/trunk
-
- 09 Apr, 2009 3 commits
-
-
Luca Abeni authored
Originally committed as revision 18402 to svn://svn.ffmpeg.org/ffmpeg/trunk
-
Luca Abeni authored
Originally committed as revision 18401 to svn://svn.ffmpeg.org/ffmpeg/trunk
-
Martin Storsjö authored
Patch by Martin Storsjö (martin AT martin DOT st) Originally committed as revision 18400 to svn://svn.ffmpeg.org/ffmpeg/trunk
-
- 06 Feb, 2009 2 commits
-
-
Luca Abeni authored
Originally committed as revision 17020 to svn://svn.ffmpeg.org/ffmpeg/trunk
-
Luca Abeni authored
Originally committed as revision 17016 to svn://svn.ffmpeg.org/ffmpeg/trunk
-
- 05 Feb, 2009 1 commit
-
-
Luca Abeni authored
does not need to abuse read_buf_index Originally committed as revision 17004 to svn://svn.ffmpeg.org/ffmpeg/trunk
-
- 27 Jan, 2009 1 commit
-
-
Luca Abeni authored
Originally committed as revision 16817 to svn://svn.ffmpeg.org/ffmpeg/trunk
-
- 02 Oct, 2007 1 commit
-
-
Luca Abeni authored
this in the AAC packetizer) Originally committed as revision 10647 to svn://svn.ffmpeg.org/ffmpeg/trunk
-
- 14 Sep, 2007 2 commits
-
-
Luca Abeni authored
Originally committed as revision 10492 to svn://svn.ffmpeg.org/ffmpeg/trunk
-
Luca Abeni authored
Originally committed as revision 10491 to svn://svn.ffmpeg.org/ffmpeg/trunk
-