Skip to content

Commit

Permalink
Fix compiler warning about assignment in conditional.
Browse files Browse the repository at this point in the history
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=140332890
  • Loading branch information
andrewlewis authored and ojw28 committed Nov 30, 2016
1 parent f9c7343 commit f7132a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions extensions/ffmpeg/src/main/jni/ffmpeg_jni.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit f7132a7

Please sign in to comment.