rtpenc: base max_frames_per_packet on avg_frame_rate, not codec timebase
authorAnton Khirnov <anton@khirnov.net>
Thu, 29 May 2014 05:58:35 +0000 (07:58 +0200)
committerAnton Khirnov <anton@khirnov.net>
Wed, 18 Jun 2014 13:03:16 +0000 (15:03 +0200)
commitcfbdd7ffbd9fe14d110fd1bb89bf52f0f7bde016
tree52833435591aa109863c0d5b41fe37a6a066c421
parent894682a9739eb8d4bfc024b0d4e5757fcfe47378
rtpenc: base max_frames_per_packet on avg_frame_rate, not codec timebase

Fall back to 1 (which is what is used for most cases anyway) when the
framerate is not set.
libavformat/rtpenc.c