mirror of
https://github.com/libretro/Lakka-LibreELEC.git
synced 2024-11-24 10:16:18 +00:00
33 lines
1.3 KiB
Diff
33 lines
1.3 KiB
Diff
From 5142ba301edc43cc70ca708aafa84cf1b2b32feb Mon Sep 17 00:00:00 2001
|
|
From: Benjamin Roszak <benjamin545@gmail.com>
|
|
Date: Thu, 15 Jul 2021 14:32:33 -0400
|
|
Subject: [PATCH 040/120] FROMGIT(6.4): media: meson: vdec: remove redundant if
|
|
statement
|
|
|
|
Checking if sess->fmt_out->pixfmt is V4L2_PIX_FMT_VP9 was already done as a
|
|
condition to enter the if statement where this additional check is made.
|
|
|
|
Signed-off-by: Benjamin Roszak <benjamin545@gmail.com>
|
|
Signed-off-by: Christian Hewitt <christianshewitt@gmail.com>
|
|
---
|
|
drivers/staging/media/meson/vdec/esparser.c | 3 +--
|
|
1 file changed, 1 insertion(+), 2 deletions(-)
|
|
|
|
diff --git a/drivers/staging/media/meson/vdec/esparser.c b/drivers/staging/media/meson/vdec/esparser.c
|
|
index 86ccc8937afc..7b15fc54efe4 100644
|
|
--- a/drivers/staging/media/meson/vdec/esparser.c
|
|
+++ b/drivers/staging/media/meson/vdec/esparser.c
|
|
@@ -314,8 +314,7 @@ esparser_queue(struct amvdec_session *sess, struct vb2_v4l2_buffer *vbuf)
|
|
num_dst_bufs = codec_ops->num_pending_bufs(sess);
|
|
|
|
num_dst_bufs += v4l2_m2m_num_dst_bufs_ready(sess->m2m_ctx);
|
|
- if (sess->fmt_out->pixfmt == V4L2_PIX_FMT_VP9)
|
|
- num_dst_bufs -= 3;
|
|
+ num_dst_bufs -= 3;
|
|
|
|
if (esparser_vififo_get_free_space(sess) < payload_size ||
|
|
atomic_read(&sess->esparser_queued_bufs) >= num_dst_bufs)
|
|
--
|
|
2.34.1
|
|
|