diff options
author | Dave Burke <daveburke@google.com> | 2012-05-15 18:15:23 -0700 |
---|---|---|
committer | Dave Burke <daveburke@google.com> | 2012-05-15 18:15:23 -0700 |
commit | 26976984d4f882f5da385360e76bc1c29fb4a696 (patch) | |
tree | f7b53d8c8d0de27a6497a9a34f339fe101092dc2 | |
parent | 2986460984580833161bdaabc7f17da1005a8961 (diff) | |
download | frameworks_av-26976984d4f882f5da385360e76bc1c29fb4a696.zip frameworks_av-26976984d4f882f5da385360e76bc1c29fb4a696.tar.gz frameworks_av-26976984d4f882f5da385360e76bc1c29fb4a696.tar.bz2 |
Add logging for invalid channel count or sample rate.
Change-Id: I2e2145e4b258923cf6c2907106345b7172c12280
-rw-r--r-- | media/libstagefright/codecs/aacdec/SoftAAC2.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/media/libstagefright/codecs/aacdec/SoftAAC2.cpp b/media/libstagefright/codecs/aacdec/SoftAAC2.cpp index 58ad065..b0d305b 100644 --- a/media/libstagefright/codecs/aacdec/SoftAAC2.cpp +++ b/media/libstagefright/codecs/aacdec/SoftAAC2.cpp @@ -179,6 +179,9 @@ OMX_ERRORTYPE SoftAAC2::internalGetParameter( pcmParams->nSamplingRate = mStreamInfo->sampleRate; } + if (!pcmParams->nChannels) ALOGW("Audio contains 0 channels"); + if (!pcmParams->nSamplingRate) ALOGW("Sampling rate of 0 Hz"); + return OMX_ErrorNone; } |