From 3390c4ef3d40b7005151f426e63b49da2d60c545 Mon Sep 17 00:00:00 2001 From: max_10 Date: Thu, 30 Nov 2017 12:38:40 +0100 Subject: [PATCH] ffmpegdec: fix audio playback for ARM_HARDWARE Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/647a69c0cf1c2fcf337c75e2d07d5dc2729d83fa Author: max_10 Date: 2017-11-30 (Thu, 30 Nov 2017) Origin message was: ------------------ - ffmpegdec: fix audio playback for ARM_HARDWARE --- src/driver/audiodec/ffmpegdec.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/driver/audiodec/ffmpegdec.cpp b/src/driver/audiodec/ffmpegdec.cpp index 02ccdb412..bd3ac8869 100644 --- a/src/driver/audiodec/ffmpegdec.cpp +++ b/src/driver/audiodec/ffmpegdec.cpp @@ -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;