mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-02-09 14:14:39 +02:00
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>
This commit is contained in:
parent
3af73f2c85
commit
f82a02aa89
@ -978,7 +978,7 @@ static int queue_frames(AVCodecContext *avctx, AVPacket *pkt_out)
|
|||||||
are only good through the next vpx_codec call */
|
are only good through the next vpx_codec call */
|
||||||
while ((pkt = vpx_codec_get_cx_data(&ctx->encoder, &iter)) &&
|
while ((pkt = vpx_codec_get_cx_data(&ctx->encoder, &iter)) &&
|
||||||
(!ctx->is_alpha ||
|
(!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) {
|
switch (pkt->kind) {
|
||||||
case VPX_CODEC_CX_FRAME_PKT:
|
case VPX_CODEC_CX_FRAME_PKT:
|
||||||
if (!size) {
|
if (!size) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user