|
|
|
@ -618,6 +618,7 @@ status_t FLACParser::init()
|
|
|
|
|
mTrackMetadata->setCString(kKeyMIMEType, MEDIA_MIMETYPE_AUDIO_RAW);
|
|
|
|
|
mTrackMetadata->setInt32(kKeyChannelCount, getChannels());
|
|
|
|
|
mTrackMetadata->setInt32(kKeySampleRate, getSampleRate());
|
|
|
|
|
mTrackMetadata->setInt32(kKeyBitsPerSample, getBitsPerSample());
|
|
|
|
|
mTrackMetadata->setInt32(kKeyPcmEncoding, kAudioEncodingPcm16bit);
|
|
|
|
|
// sample rate is non-zero, so division by zero not possible
|
|
|
|
|
mTrackMetadata->setInt64(kKeyDuration,
|
|
|
|
|