ffmpeg/libavformat
Martin Storsjö 4f6cd883f0 rtpenc: Don't set max_frames_per_packet based on the packet frame size or frame rate
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>
2015-02-28 22:54:31 +02:00
..
2014-05-18 10:19:35 +02:00
2014-07-29 17:47:32 +02:00
2014-07-09 13:37:18 +00:00
2015-02-19 12:05:19 -05:00
2012-11-12 10:33:18 -05:00
2015-02-15 18:20:54 +01:00
2013-02-06 09:48:51 +01:00
2014-10-20 10:38:38 +01:00
2013-10-06 19:36:53 +02:00
2012-11-12 10:33:18 -05:00
2014-09-25 01:44:31 -07:00
2014-07-03 10:46:11 -07:00
2014-07-03 10:46:11 -07:00
2015-02-19 12:05:19 -05:00
2013-08-07 21:22:03 +02:00
2012-06-28 16:53:09 +02:00
2014-11-22 22:10:52 +02:00
2012-10-25 14:05:05 +02:00
2014-03-10 18:02:55 +01:00
2014-03-10 18:02:36 +01:00
2013-10-31 20:20:24 +01:00
2014-10-24 09:53:45 +03:00
2014-10-20 10:38:37 +01:00
2012-11-12 10:33:19 -05:00
2014-12-08 13:53:30 +00:00
2012-06-21 16:11:29 +03:00
2014-09-25 01:44:32 -07:00
2014-09-25 01:58:51 -07:00
2013-04-25 10:13:27 +02:00
2013-12-26 06:07:35 +01:00
2015-02-17 12:16:43 -05:00
2014-12-07 21:50:47 +01:00
2014-03-24 02:22:15 +01:00
2014-08-26 03:43:13 +02:00
2014-08-05 11:30:50 +02:00
2014-04-19 16:24:27 +02:00
2014-08-17 16:11:16 +02:00
2014-08-17 16:11:02 +02:00
2014-03-16 23:29:51 +01:00
2014-05-28 22:04:56 +02:00
2015-02-17 12:16:43 -05:00
2014-12-18 23:27:07 +01:00
2015-02-15 18:20:54 +01:00
2015-02-07 15:36:15 +01:00
2012-10-25 14:05:13 +02:00
2015-02-24 23:07:50 +02:00
2015-02-22 22:42:27 +00:00
2012-08-07 16:00:24 +02:00
2012-07-23 16:32:07 +03:00
2012-07-23 16:32:07 +03:00
2014-11-28 20:56:45 +02:00
2014-12-18 23:11:37 +02:00
2015-02-24 23:07:50 +02:00
2015-02-21 23:37:24 +02:00
2012-07-10 22:00:28 +03:00
2015-02-23 16:55:56 +02:00
2014-10-24 09:53:45 +03:00
2014-12-18 23:11:37 +02:00
2014-04-06 16:41:41 +02:00
2014-11-24 01:30:15 +00:00
2014-12-18 11:58:23 +02:00
2012-12-11 09:37:17 -05:00
2012-11-12 10:33:22 -05:00
2012-11-12 10:33:22 -05:00
2014-04-22 07:44:16 +02:00
2014-07-06 09:25:52 -07:00
2012-11-12 10:33:22 -05:00