diff options
author | Andreas Huber <andih@google.com> | 2011-02-15 10:39:48 -0800 |
---|---|---|
committer | Andreas Huber <andih@google.com> | 2011-02-15 12:00:07 -0800 |
commit | dc468c5f9d72ce54de0070493e9a23efb8907e06 (patch) | |
tree | 60bc0bbce4d9d765f13235d702443fecbe7e03ea /media/libstagefright/rtsp/AMPEG4ElementaryAssembler.cpp | |
parent | f1958f9442bc937e1f8c8d9175901500b944b021 (diff) | |
download | frameworks_av-dc468c5f9d72ce54de0070493e9a23efb8907e06.zip frameworks_av-dc468c5f9d72ce54de0070493e9a23efb8907e06.tar.gz frameworks_av-dc468c5f9d72ce54de0070493e9a23efb8907e06.tar.bz2 |
Work around several issues with non-compliant RTSP servers.
In this particular case these RTSP servers were implemented as local services,
retransmitting live streams via a local RTSP server instance.
They picked wrong rtp/rtcp port pairs (odd rtp port), blank lines in the session
description, wrong case of the format description, relative base URLs...
Change-Id: I63fa90ca2398f19e8b52c147248bd2c5c2372426
related-to-bug: 3452103
Diffstat (limited to 'media/libstagefright/rtsp/AMPEG4ElementaryAssembler.cpp')
-rw-r--r-- | media/libstagefright/rtsp/AMPEG4ElementaryAssembler.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/media/libstagefright/rtsp/AMPEG4ElementaryAssembler.cpp b/media/libstagefright/rtsp/AMPEG4ElementaryAssembler.cpp index 13988cd..9f6bd29 100644 --- a/media/libstagefright/rtsp/AMPEG4ElementaryAssembler.cpp +++ b/media/libstagefright/rtsp/AMPEG4ElementaryAssembler.cpp @@ -104,7 +104,7 @@ AMPEG4ElementaryAssembler::AMPEG4ElementaryAssembler( mNextExpectedSeqNoValid(false), mNextExpectedSeqNo(0), mAccessUnitDamaged(false) { - mIsGeneric = desc.startsWith("mpeg4-generic/"); + mIsGeneric = !strncasecmp(desc.c_str(),"mpeg4-generic/", 14); if (mIsGeneric) { AString value; |