Fix AIFF decoding with ffmpeg.

AIFF files are little endian. ffmpeg detects this just fine, but we
overwrote the endianness in the decoded format info with
B_MEDIA_HOST_ENDIAN right after setting it.

Now we can decode both AIFF and WAV files just fine.

Fixes #7047.
This commit is contained in:
Adrien Destugues 2014-10-22 17:26:18 +02:00
parent 1560410ff4
commit 377c5aecf0

View File

@ -1070,8 +1070,6 @@ AVFormatReader::Stream::Init(int32 virtualIndex)
format->u.raw_audio.frame_rate = (float)codecContext->sample_rate;
format->u.raw_audio.channel_count = codecContext->channels;
format->u.raw_audio.channel_mask = codecContext->channel_layout;
format->u.raw_audio.byte_order
= avformat_to_beos_byte_order(codecContext->sample_fmt);
ConvertAVSampleFormatToRawAudioFormat(codecContext->sample_fmt,
format->u.raw_audio.format);
format->u.raw_audio.buffer_size = 0;