]> git.sesse.net Git - vlc/blobdiff - src/video_output/vout_intf.c
Fixed bug in snapshot format
[vlc] / src / video_output / vout_intf.c
index 04570c983b66744245bd7da6fbab532aab02b011..313ced1137580ef9736b435a28f31f8e2b434742 100644 (file)
@@ -753,8 +753,8 @@ int vout_GetSnapshot( vout_thread_t *p_vout,
     if( pp_image )
     {
         vlc_fourcc_t i_format = VLC_FOURCC('p','n','g',' ');
-        if( psz_format && image_Ext2Fourcc( psz_format ) )
-            i_format = image_Ext2Fourcc( psz_format );
+        if( psz_format && image_Type2Fourcc( psz_format ) )
+            i_format = image_Type2Fourcc( psz_format );
 
         const int i_override_width  = var_GetInteger( p_vout, "snapshot-width" );
         const int i_override_height = var_GetInteger( p_vout, "snapshot-height" );