OSDN Git Service

Fix bad checks that causes crash when streaming H.263 content.
authorRoger1 Jonsson <roger1.jonsson@sonyericsson.com>
Tue, 21 Dec 2010 08:57:41 +0000 (09:57 +0100)
committerHenrik Baard <henrik.baard@sonymobile.com>
Mon, 3 Dec 2012 07:13:09 +0000 (08:13 +0100)
commitb90b748d7484f1d464cd9e15289d77b83beed10e
tree4a820515a821c1d7faddd67c1b64bb3035a90ee8
parent5676e25a9d99703a247cc03f3918f8ac2ddbb338
Fix bad checks that causes crash when streaming H.263 content.

Remove checks that causes crash for rtsp streamed h.263 content
with certain values in the RTP payload header:
Remove zero check for the five reserved bits in the payload header.
According to RFC 4629 these bits MUST be ignored by receivers.
Remove zero-check for the VRC (Video Redundancy Coding) bit,
skip packet instead.
Remove zero-check for the PLEN bits (extra picture header),
skip packet instead.
Remove zero-check for the PEBIT bits (extra picture header),
skip packet instead.
Remove corresponding zero check for the four resreved bits in the
AMR payload header. According to RFC 4867 these bits MUST be
ignored by receivers.

Change-Id: I7fc21d69a19d23da24f9267623c338d415ef1387
media/libstagefright/rtsp/AAMRAssembler.cpp
media/libstagefright/rtsp/AH263Assembler.cpp