Fix compiler warning about assignment in conditional.
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=140332890
This commit is contained in:
parent
f9c7343e76
commit
f7132a7a73
@ -267,7 +267,7 @@ int decodePacket(AVCodecContext *context, AVPacket *packet,
|
|||||||
sampleFormat, 1);
|
sampleFormat, 1);
|
||||||
AVAudioResampleContext *resampleContext;
|
AVAudioResampleContext *resampleContext;
|
||||||
if (context->opaque) {
|
if (context->opaque) {
|
||||||
resampleContext = (AVAudioResampleContext *)context->opaque;
|
resampleContext = (AVAudioResampleContext *) context->opaque;
|
||||||
} else {
|
} else {
|
||||||
resampleContext = avresample_alloc_context();
|
resampleContext = avresample_alloc_context();
|
||||||
av_opt_set_int(resampleContext, "in_channel_layout", channelLayout, 0);
|
av_opt_set_int(resampleContext, "in_channel_layout", channelLayout, 0);
|
||||||
@ -326,7 +326,7 @@ void releaseContext(AVCodecContext *context) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
AVAudioResampleContext *resampleContext;
|
AVAudioResampleContext *resampleContext;
|
||||||
if (resampleContext = (AVAudioResampleContext *)context->opaque) {
|
if ((resampleContext = (AVAudioResampleContext *) context->opaque)) {
|
||||||
avresample_free(&resampleContext);
|
avresample_free(&resampleContext);
|
||||||
context->opaque = NULL;
|
context->opaque = NULL;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user