Android-x86
Fork
捐款

  • R/O
  • HTTP
  • SSH
  • HTTPS

frameworks-av: 提交

frameworks/av


Commit MetaInfo

修訂bd44ecc5ecf08447b5e8bde21d99e05ca7145f58 (tree)
時間2021-11-05 10:36:30
作者Michael Goffioul <michael.goffioul@linc...>
CommiterMauro Rossi

Log Message

Setup FFMPEG audio/mpeg-L2 codec correctly

Now that Android supports audio mp2, one has to make sure the FFMPEG
variant is configured correctly when being used.

Change Summary

差異

--- a/media/libstagefright/ACodec.cpp
+++ b/media/libstagefright/ACodec.cpp
@@ -2151,7 +2151,7 @@ status_t ACodec::configureCodec(
21512151 outputFormat->setInt32("using-sw-renderer", 1);
21522152 }
21532153 } else if (!strcasecmp(mime, MEDIA_MIMETYPE_AUDIO_MPEG) ||
2154- !strcasecmp(mime, MEDIA_MIMETYPE_AUDIO_MPEG_LAYER_II)) {
2154+ (!strncmp(mComponentName.c_str(), "OMX.google.", 11) && !strcasecmp(mime, MEDIA_MIMETYPE_AUDIO_MPEG_LAYER_II))) {
21552155 int32_t numChannels, sampleRate;
21562156 if (!msg->findInt32("channel-count", &numChannels)
21572157 || !msg->findInt32("sample-rate", &sampleRate)) {
Show on old repository browser