rtpenc: Expose the max packet size via an avoption
authorMartin Storsjö <martin@martin.st>
Thu, 23 Feb 2012 09:56:15 +0000 (11:56 +0200)
committerMartin Storsjö <martin@martin.st>
Thu, 23 Feb 2012 19:32:52 +0000 (21:32 +0200)
commitba605cef7961ee699c893d1a3b5c9730f0a37b6c
treea9e4414c8c6afb4290d572b2447ba38a8bd00870
parentf553462041096d5d2afd9a8841a7af50df5c2540
rtpenc: Expose the max packet size via an avoption

This allows opting for a lower MTU than what the AVIOContext
indicated, and allows writing into outputs that don't indicate
an MTU at all (such as plain files, which is useful for testing).

This also allows querying for the MTU via the avoption.

Signed-off-by: Martin Storsjö <martin@martin.st>
libavformat/rtpenc.c