summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/rtsp/ARTPAssembler.h
diff options
context:
space:
mode:
authorAndreas Huber <andih@google.com>2012-05-17 12:12:39 -0700
committerAndreas Huber <andih@google.com>2012-05-17 12:12:39 -0700
commit8647bbe4420ca487467318404127f52c567e346b (patch)
tree6c6f23d84034a5e4ca0aee0542707bd0bca70570 /media/libstagefright/rtsp/ARTPAssembler.h
parentcd28dc10d49c359566c69d48a29a6f0d3eefa6d9 (diff)
downloadframeworks_av-8647bbe4420ca487467318404127f52c567e346b.zip
frameworks_av-8647bbe4420ca487467318404127f52c567e346b.tar.gz
frameworks_av-8647bbe4420ca487467318404127f52c567e346b.tar.bz2
Prefix MPEG4-generic audio data with ADTS headers
to work around limitations of the new AAC decoder. Change-Id: I4988c7c39fedb7d04eb1ae2ba2d618aa6cb14e77 related-to-bug: 6488547
Diffstat (limited to 'media/libstagefright/rtsp/ARTPAssembler.h')
-rw-r--r--media/libstagefright/rtsp/ARTPAssembler.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/media/libstagefright/rtsp/ARTPAssembler.h b/media/libstagefright/rtsp/ARTPAssembler.h
index 70ea186..7c147be 100644
--- a/media/libstagefright/rtsp/ARTPAssembler.h
+++ b/media/libstagefright/rtsp/ARTPAssembler.h
@@ -19,6 +19,7 @@
#define A_RTP_ASSEMBLER_H_
#include <media/stagefright/foundation/ABase.h>
+#include <utils/List.h>
#include <utils/RefBase.h>
namespace android {
@@ -45,6 +46,15 @@ protected:
static void CopyTimes(const sp<ABuffer> &to, const sp<ABuffer> &from);
+ static sp<ABuffer> MakeADTSCompoundFromAACFrames(
+ unsigned profile,
+ unsigned samplingFreqIndex,
+ unsigned channelConfig,
+ const List<sp<ABuffer> > &frames);
+
+ static sp<ABuffer> MakeCompoundFromPackets(
+ const List<sp<ABuffer> > &frames);
+
private:
int64_t mFirstFailureTimeUs;