rtp: factorize dynamic payload type fallback
authorRafaël Carré <rafael.carre@savoirfairelinux.com>
Fri, 23 Sep 2011 19:47:56 +0000 (15:47 -0400)
committerLuca Barbato <lu_zero@gentoo.org>
Fri, 23 Sep 2011 20:00:24 +0000 (22:00 +0200)
commit0c378ea1f76e226eff460c84634e7227e3705372
tree312898a1f9dccd4248e7156a30aeca45b5030f44
parentbafff1668c6bc4d1cb3b7e4b9dac85b8b52e4765
rtp: factorize  dynamic payload type fallback

Move the identical code in rtp_write_header() and
ff_sdp_write_media() inside ff_rtp_get_payload_type()

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
libavformat/rtp.c
libavformat/rtpenc.c
libavformat/sdp.c