dxva2_h264: Remove an unused variable

Message ID 1466507694-62584-1-git-send-email-martin@martin.st
State Committed
Commit 8c3c7b8920033d61c7aa15a4465b759c84e5958f
Headers show

Commit Message

Martin Storsjö June 21, 2016, 11:14 a.m.
This was introduced by mistake in 39cdbb12aa214 (only one of the
added variables were really needed).
---
 libavcodec/dxva2_h264.c | 1 -
 1 file changed, 1 deletion(-)

Comments

Diego Biurrun June 21, 2016, 11:18 a.m. | #1
On Tue, Jun 21, 2016 at 02:14:54PM +0300, Martin Storsjö wrote:
> This was introduced by mistake in 39cdbb12aa214 (only one of the
> added variables were really needed).
> ---
>  libavcodec/dxva2_h264.c | 1 -
>  1 file changed, 1 deletion(-)

OK

Diego

Patch

diff --git a/libavcodec/dxva2_h264.c b/libavcodec/dxva2_h264.c
index 52c59fb..5622c22 100644
--- a/libavcodec/dxva2_h264.c
+++ b/libavcodec/dxva2_h264.c
@@ -166,7 +166,6 @@  static void fill_picture_parameters(const AVCodecContext *avctx, AVDXVAContext *
 static void fill_scaling_lists(const AVCodecContext *avctx, AVDXVAContext *ctx, const H264Context *h, DXVA_Qmatrix_H264 *qm)
 {
     unsigned i, j;
-    const SPS *sps = h->ps.sps;
     const PPS *pps = h->ps.pps;
     memset(qm, 0, sizeof(*qm));
     if (DXVA_CONTEXT_WORKAROUND(avctx, ctx) & FF_DXVA2_WORKAROUND_SCALING_LIST_ZIGZAG) {