mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 16:01:20 +02:00
ffmpegdec: fix playback for big-endian arch
This commit is contained in:
@@ -243,11 +243,7 @@ CBaseDec::RetCode CFfmpegDec::Decoder(FILE *_in, int /*OutputFd*/, State* state,
|
|||||||
|
|
||||||
mSampleRate = samplerate;
|
mSampleRate = samplerate;
|
||||||
mChannels = av_get_channel_layout_nb_channels(AV_CH_LAYOUT_STEREO);
|
mChannels = av_get_channel_layout_nb_channels(AV_CH_LAYOUT_STEREO);
|
||||||
#if __BYTE_ORDER == __LITTLE_ENDIAN
|
|
||||||
audioDecoder->PrepareClipPlay(mChannels, mSampleRate, 16, 1);
|
audioDecoder->PrepareClipPlay(mChannels, mSampleRate, 16, 1);
|
||||||
#else
|
|
||||||
audioDecoder->PrepareClipPlay(mChannels, mSampleRate, 16, 0);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
AVFrame *frame = NULL;
|
AVFrame *frame = NULL;
|
||||||
AVPacket rpacket;
|
AVPacket rpacket;
|
||||||
|
Reference in New Issue
Block a user