]> git.sesse.net Git - vlc/commitdiff
vaapi: remove unused variable
authorJean-Yves Avenard <jyavenard@mythtv.org>
Fri, 13 Jun 2014 11:02:36 +0000 (11:02 +0000)
committerJean-Baptiste Kempf <jb@videolan.org>
Sat, 14 Jun 2014 11:00:05 +0000 (13:00 +0200)
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/codec/avcodec/vaapi.c

index 746a6fc8f177b2948c089ec0a11665cfd3c0ef7a..017c99573daadc429d09a6d4aee91959ce42d32a 100644 (file)
@@ -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;
         }
     }