From f7132a7a7393668b32d657efb374db7e05ba4ca1 Mon Sep 17 00:00:00 2001 From: andrewlewis Date: Mon, 28 Nov 2016 01:57:13 -0800 Subject: [PATCH] Fix compiler warning about assignment in conditional. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=140332890 --- extensions/ffmpeg/src/main/jni/ffmpeg_jni.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extensions/ffmpeg/src/main/jni/ffmpeg_jni.cc b/extensions/ffmpeg/src/main/jni/ffmpeg_jni.cc index 0d083a8bd4..fa615f2ec1 100644 --- a/extensions/ffmpeg/src/main/jni/ffmpeg_jni.cc +++ b/extensions/ffmpeg/src/main/jni/ffmpeg_jni.cc @@ -267,7 +267,7 @@ int decodePacket(AVCodecContext *context, AVPacket *packet, sampleFormat, 1); AVAudioResampleContext *resampleContext; if (context->opaque) { - resampleContext = (AVAudioResampleContext *)context->opaque; + resampleContext = (AVAudioResampleContext *) context->opaque; } else { resampleContext = avresample_alloc_context(); av_opt_set_int(resampleContext, "in_channel_layout", channelLayout, 0); @@ -326,7 +326,7 @@ void releaseContext(AVCodecContext *context) { return; } AVAudioResampleContext *resampleContext; - if (resampleContext = (AVAudioResampleContext *)context->opaque) { + if ((resampleContext = (AVAudioResampleContext *) context->opaque)) { avresample_free(&resampleContext); context->opaque = NULL; }