ffmpegdec: fix audio playback for ARM_HARDWARE

Origin commit data
------------------
Branch: ni/coolstream
Commit: 647a69c0cf
Author: max_10 <max_10@gmx.de>
Date: 2017-11-30 (Thu, 30 Nov 2017)

Origin message was:
------------------
- ffmpegdec: fix audio playback for ARM_HARDWARE

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
max_10
2017-11-30 12:38:40 +01:00
committed by vanhofen
parent f7b1c91039
commit 71320a28d7

View File

@@ -257,7 +257,12 @@ CBaseDec::RetCode CFfmpegDec::Decoder(FILE *_in, int /*OutputFd*/, State* state,
mSampleRate = samplerate;
mChannels = av_get_channel_layout_nb_channels(AV_CH_LAYOUT_STEREO);
#if !HAVE_ARM_HARDWARE
audioDecoder->PrepareClipPlay(mChannels, mSampleRate, 16, 1);
#else
audioDecoder->PrepareClipPlay(mChannels, mSampleRate, 16, 0);
#endif
AVFrame *frame = NULL;
AVPacket rpacket;