diff options
author | Jun Zhao <barryjzhao@tencent.com> | 2019-05-10 16:02:40 +0300 |
---|---|---|
committer | Jun Zhao <barryjzhao@tencent.com> | 2019-05-12 09:17:52 +0300 |
commit | f82a02aa89ceb1f12c6f8f1627a93f2d568d9648 (patch) | |
tree | 69fc2ffef99d73625e6decb25eca7875214a8a9a /libavcodec/libvpxenc.c | |
parent | 3af73f2c8588283dfaa41cf4465f8fc40549f233 (diff) |
lavc/libvpxenc: remove redundant condition check
Redundant condition: '!A || B' is equivalent to '!A || (A && B)' but
more clearly.
Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
Diffstat (limited to 'libavcodec/libvpxenc.c')
-rw-r--r-- | libavcodec/libvpxenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/libvpxenc.c b/libavcodec/libvpxenc.c index c823b8ad8b..feb52ea0dd 100644 --- a/libavcodec/libvpxenc.c +++ b/libavcodec/libvpxenc.c @@ -978,7 +978,7 @@ static int queue_frames(AVCodecContext *avctx, AVPacket *pkt_out) are only good through the next vpx_codec call */ while ((pkt = vpx_codec_get_cx_data(&ctx->encoder, &iter)) && (!ctx->is_alpha || - (ctx->is_alpha && (pkt_alpha = vpx_codec_get_cx_data(&ctx->encoder_alpha, &iter_alpha))))) { + (pkt_alpha = vpx_codec_get_cx_data(&ctx->encoder_alpha, &iter_alpha)))) { switch (pkt->kind) { case VPX_CODEC_CX_FRAME_PKT: if (!size) { |