diff options
Diffstat (limited to 'general-meson-vdec-remove-redundant-if-statement.patch')
-rw-r--r-- | general-meson-vdec-remove-redundant-if-statement.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/general-meson-vdec-remove-redundant-if-statement.patch b/general-meson-vdec-remove-redundant-if-statement.patch new file mode 100644 index 000000000000..489b93556264 --- /dev/null +++ b/general-meson-vdec-remove-redundant-if-statement.patch @@ -0,0 +1,29 @@ +From 4aca1a59251338a9f98b58fc67e7749fae32b3be Mon Sep 17 00:00:00 2001 +From: benjamin545 <benjamin545@gmail.com> +Date: Thu, 15 Jul 2021 14:32:33 -0400 +Subject: [PATCH 62/90] WIP: drivers: 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 performed +--- + 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 db7022707ff8..e18334e57fc0 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.35.1 + |