summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/rtsp/ARTPSource.cpp
diff options
context:
space:
mode:
authorAndreas Huber <andih@google.com>2011-02-22 16:25:00 -0800
committerAndreas Huber <andih@google.com>2011-02-22 16:25:00 -0800
commitfcea8f7a7d178e5426aa06586cff54726e18d1f6 (patch)
tree3ceea0c1696a4d69305fa101200186525962d2aa /media/libstagefright/rtsp/ARTPSource.cpp
parenta849440ca96e93f700d62c6e41d48905b4d405b6 (diff)
downloadframeworks_av-fcea8f7a7d178e5426aa06586cff54726e18d1f6.zip
frameworks_av-fcea8f7a7d178e5426aa06586cff54726e18d1f6.tar.gz
frameworks_av-fcea8f7a7d178e5426aa06586cff54726e18d1f6.tar.bz2
Support for PCMA and PCMU raw audio data in RTP/RTSP.
Change-Id: Icb87bdfa7cf572c572e2a86c46fa072d9fad18f6 related-to-bug: 3084183
Diffstat (limited to 'media/libstagefright/rtsp/ARTPSource.cpp')
-rw-r--r--media/libstagefright/rtsp/ARTPSource.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/media/libstagefright/rtsp/ARTPSource.cpp b/media/libstagefright/rtsp/ARTPSource.cpp
index 84c666f..3aa07ce 100644
--- a/media/libstagefright/rtsp/ARTPSource.cpp
+++ b/media/libstagefright/rtsp/ARTPSource.cpp
@@ -25,6 +25,7 @@
#include "AH263Assembler.h"
#include "AMPEG4AudioAssembler.h"
#include "AMPEG4ElementaryAssembler.h"
+#include "ARawAudioAssembler.h"
#include "ASessionDescription.h"
#include <media/stagefright/foundation/ABuffer.h>
@@ -70,6 +71,8 @@ ARTPSource::ARTPSource(
|| !strncasecmp(desc.c_str(), "mpeg4-generic/", 14)) {
mAssembler = new AMPEG4ElementaryAssembler(notify, desc, params);
mIssueFIRRequests = true;
+ } else if (ARawAudioAssembler::Supports(desc.c_str())) {
+ mAssembler = new ARawAudioAssembler(notify, desc.c_str(), params);
} else {
TRESPASS();
}