[MPlayer-cvslog] r29027 - trunk/libvo/vo_vdpau.c

cehoyos subversion at mplayerhq.hu
Sat Mar 21 21:11:05 CET 2009


Author: cehoyos
Date: Sat Mar 21 21:11:05 2009
New Revision: 29027

Log:
Test if create_vdp_decoder() might succeed by calling it from config()
with a small value for max_reference_frames.
This does not make automatic recovery by using software decoder possible,
but lets MPlayer fail more graciously on - actually existing - buggy
hardware that does not support certain H264 widths when using
hardware accelerated decoding (784, 864, 944, 1024, 1808, 1888 pixels on
NVIDIA G98) and if the user tries to hardware-decode more samples at
the same time than supported.
Might break playback of H264 Intra-Only samples on hardware with very
little video memory.

Modified:
   trunk/libvo/vo_vdpau.c

Modified: trunk/libvo/vo_vdpau.c
==============================================================================
--- trunk/libvo/vo_vdpau.c	Sat Mar 21 20:59:35 2009	(r29026)
+++ trunk/libvo/vo_vdpau.c	Sat Mar 21 21:11:05 2009	(r29027)
@@ -596,6 +596,9 @@ static int config(uint32_t width, uint32
     vid_surface_num = -1;
     resize();
 
+    if (!create_vdp_decoder(2))
+        return -1;
+
     return 0;
 }
 


More information about the MPlayer-cvslog mailing list