summaryrefslogtreecommitdiffstats
path: root/media/libstagefright
diff options
context:
space:
mode:
authorAndreas Huber <andih@google.com>2012-11-14 11:51:31 -0800
committerAndroid Git Automerger <android-git-automerger@android.com>2012-11-14 11:51:31 -0800
commit33cf42ff2264ba4e806ab82ca7a4139b1682192b (patch)
tree8296d4324fdbe3cb4ca94b4cc183b6aab2872c31 /media/libstagefright
parent89e275dc833aadb90dd12bdb5dc7e93775a625be (diff)
parentdbb74f4ee1a971da71f26739d870fc9334100499 (diff)
downloadframeworks_av-33cf42ff2264ba4e806ab82ca7a4139b1682192b.zip
frameworks_av-33cf42ff2264ba4e806ab82ca7a4139b1682192b.tar.gz
frameworks_av-33cf42ff2264ba4e806ab82ca7a4139b1682192b.tar.bz2
am dbb74f4e: am f0937247: Merge "Properly signal an error if codec configuration goes wrong." into jb-mr1.1-dev
* commit 'dbb74f4ee1a971da71f26739d870fc9334100499': 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;
}