summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/FFMPEGSoftCodec.cpp
diff options
context:
space:
mode:
authorDiogo Ferreira <defer@cyngn.com>2015-12-01 15:33:17 +0000
committerDiogo Ferreira <defer@cyngn.com>2015-12-01 15:33:17 +0000
commit9ea60c76a3eb25d968bfc54e77721944d1b740e1 (patch)
treebe72734a72ef5905a65b3c7c45f8d1b5cc75fe37 /media/libstagefright/FFMPEGSoftCodec.cpp
parentaeda337c2fad2db2d25128c4bd68fd7c2c32c09f (diff)
downloadframeworks_av-9ea60c76a3eb25d968bfc54e77721944d1b740e1.zip
frameworks_av-9ea60c76a3eb25d968bfc54e77721944d1b740e1.tar.gz
frameworks_av-9ea60c76a3eb25d968bfc54e77721944d1b740e1.tar.bz2
ffmpeg: flac: Assume 16 bits per sample if not set
Fixes android.media.cts.MediaCodecCapabilitiesTest#testGetMaxSupportedInstances Change-Id: I52222fd739c413ddd9c925796dc7adabef1b375a
Diffstat (limited to 'media/libstagefright/FFMPEGSoftCodec.cpp')
-rw-r--r--media/libstagefright/FFMPEGSoftCodec.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/media/libstagefright/FFMPEGSoftCodec.cpp b/media/libstagefright/FFMPEGSoftCodec.cpp
index 6a842e7..fe86a03 100644
--- a/media/libstagefright/FFMPEGSoftCodec.cpp
+++ b/media/libstagefright/FFMPEGSoftCodec.cpp
@@ -1020,7 +1020,7 @@ status_t FFMPEGSoftCodec::setFLACFormat(
CHECK(msg->findInt32(getMsgKey(kKeyChannelCount), &numChannels));
CHECK(msg->findInt32(getMsgKey(kKeySampleRate), &sampleRate));
- CHECK(msg->findInt32(getMsgKey(kKeyBitsPerSample), &bitsPerSample));
+ msg->findInt32(getMsgKey(kKeyBitsPerSample), &bitsPerSample);
ALOGV("Channels: %d, SampleRate: %d BitsPerSample: %d",
numChannels, sampleRate, bitsPerSample);