summaryrefslogtreecommitdiff
path: root/libavcodec/mlpenc.c
diff options
context:
space:
mode:
authorJun Zhao <barryjzhao@tencent.com>2019-05-10 21:24:17 +0800
committerJun Zhao <barryjzhao@tencent.com>2019-05-12 14:18:08 +0800
commit64e610b5f4b7c338713208a4dfa24a8f2eb728c8 (patch)
treea9fad8ead7f78c94fe5a4e14ef13847ffea57acc /libavcodec/mlpenc.c
parentf82a02aa89ceb1f12c6f8f1627a93f2d568d9648 (diff)
lavc/mlpenc: remove the redundant condition check
remove the redundant condition check for 'frame' Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
Diffstat (limited to 'libavcodec/mlpenc.c')
-rw-r--r--libavcodec/mlpenc.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/libavcodec/mlpenc.c b/libavcodec/mlpenc.c
index 7536d3b2f5..deb171645c 100644
--- a/libavcodec/mlpenc.c
+++ b/libavcodec/mlpenc.c
@@ -2232,10 +2232,8 @@ static int mlp_encode_frame(AVCodecContext *avctx, AVPacket *avpkt,
return 1;
/* add current frame to queue */
- if (frame) {
- if ((ret = ff_af_queue_add(&ctx->afq, frame)) < 0)
- return ret;
- }
+ if ((ret = ff_af_queue_add(&ctx->afq, frame)) < 0)
+ return ret;
data = frame->data[0];