summaryrefslogtreecommitdiffstats
path: root/media/libstagefright
diff options
context:
space:
mode:
authorAndreas Huber <andih@google.com>2012-11-14 11:49:55 -0800
committerAndroid Git Automerger <android-git-automerger@android.com>2012-11-14 11:49:55 -0800
commitdbb74f4ee1a971da71f26739d870fc9334100499 (patch)
tree1c66df423a63bedc946d3bade6f6589e61a90ff4 /media/libstagefright
parent911d5f937adbd177c69bd6959603b8a3b776097e (diff)
parentf0937247b6d92b7d9457c64e36fe4c10927685ac (diff)
downloadframeworks_av-dbb74f4ee1a971da71f26739d870fc9334100499.zip
frameworks_av-dbb74f4ee1a971da71f26739d870fc9334100499.tar.gz
frameworks_av-dbb74f4ee1a971da71f26739d870fc9334100499.tar.bz2
am f0937247: Merge "Properly signal an error if codec configuration goes wrong." into jb-mr1.1-dev
* commit 'f0937247b6d92b7d9457c64e36fe4c10927685ac': Properly signal an error if codec configuration goes wrong.
Diffstat (limited to 'media/libstagefright')
-rw-r--r--media/libstagefright/ACodec.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/media/libstagefright/ACodec.cpp b/media/libstagefright/ACodec.cpp
index 0ca027b..84b4962 100644
--- a/media/libstagefright/ACodec.cpp
+++ b/media/libstagefright/ACodec.cpp
@@ -937,7 +937,8 @@ status_t ACodec::configureCodec(
}
err = setupAACCodec(
- encoder, numChannels, sampleRate, bitRate, aacProfile, isADTS != 0);
+ encoder, numChannels, sampleRate, bitRate, aacProfile,
+ isADTS != 0);
}
} else if (!strcasecmp(mime, MEDIA_MIMETYPE_AUDIO_AMR_NB)) {
err = setupAMRCodec(encoder, false /* isWAMR */, bitRate);
@@ -986,6 +987,10 @@ status_t ACodec::configureCodec(
}
}
+ if (err != OK) {
+ return err;
+ }
+
if (!msg->findInt32("encoder-delay", &mEncoderDelay)) {
mEncoderDelay = 0;
}