rtpdec: Identify incorrectly signalled H263
authorMartin Storsjö <martin@martin.st>
Fri, 17 Feb 2012 08:27:41 +0000 (10:27 +0200)
committerMartin Storsjö <martin@martin.st>
Sat, 18 Feb 2012 15:31:55 +0000 (17:31 +0200)
commitc7e8639c70ec25be2c0afdcea61d992de5f1928e
treeda775477a4893a730b9da3a361840b5d20f78eb1
parentb1af4e9c27e2cd4a7deab26b88feae8490d673ba
rtpdec: Identify incorrectly signalled H263

H263 in RTP can be packetized in two formats (RFC 2190, RFC
2429/4629). The former normally uses the static payload type 34,
while the latter normally uses dynamic payload types with the
SDP format names H263-1998 or H263-2000.

Look for packets that don't look like proper RFC 2190 packets and
switch to depacketizing them according to the new format if they
match some heuristic criteria.

Signed-off-by: Martin Storsjö <martin@martin.st>
libavformat/rtpdec_formats.h
libavformat/rtpdec_h263.c
libavformat/rtpdec_h263_rfc2190.c