[vlc-devel] [PATCH 1/6] vaapi: remove unused variable

Jean-Yves Avenard jyavenard at gmail.com
Fri Jun 13 14:02:36 CEST 2014


From: Jean-Yves Avenard <jyavenard at mythtv.org>

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

diff --git a/modules/codec/avcodec/vaapi.c b/modules/codec/avcodec/vaapi.c
index 746a6fc..017c995 100644
--- a/modules/codec/avcodec/vaapi.c
+++ b/modules/codec/avcodec/vaapi.c
@@ -352,7 +352,6 @@ static int CreateSurfaces( vlc_va_sys_t *sys, void **pp_hw_ctx, vlc_fourcc_t *pi
     }
 
     vlc_fourcc_t  i_chroma = 0;
-    VAImageFormat fmt;
     for( int i = 0; i < i_fmt_count; i++ )
     {
         if( p_fmt[i].fourcc == VA_FOURCC( 'Y', 'V', '1', '2' ) ||
@@ -375,7 +374,6 @@ static int CreateSurfaces( vlc_va_sys_t *sys, void **pp_hw_ctx, vlc_fourcc_t *pi
             }
 
             i_chroma = VLC_CODEC_YV12;
-            fmt = p_fmt[i];
             break;
         }
     }
-- 
1.9.1




More information about the vlc-devel mailing list