[vlc-commits] avcodec: vaapi: remove bogus unused mark

Steve Lhomme git at videolan.org
Thu Jun 20 10:03:25 CEST 2019


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Wed Jun 19 15:14:44 2019 +0200| [3f0ba8a06bf3d02e8f2e7f4c02c8b70877e7020a] | committer: Steve Lhomme

avcodec: vaapi: remove bogus unused mark

The fmt is used to get the decoder profile.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=3f0ba8a06bf3d02e8f2e7f4c02c8b70877e7020a
---

 modules/codec/avcodec/vaapi.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/modules/codec/avcodec/vaapi.c b/modules/codec/avcodec/vaapi.c
index a9eddd5bfb..730b788372 100644
--- a/modules/codec/avcodec/vaapi.c
+++ b/modules/codec/avcodec/vaapi.c
@@ -151,7 +151,6 @@ static int Create(vlc_va_t *va, AVCodecContext *ctx, enum PixelFormat pix_fmt,
     if (pix_fmt != AV_PIX_FMT_VAAPI_VLD || p_sys == NULL)
         return VLC_EGENERIC;
 
-    (void) fmt;
     vlc_object_t *o = VLC_OBJECT(va);
 
     int ret = VLC_EGENERIC;



More information about the vlc-commits mailing list