changeset 980:e9dedf1e544e

-framedrop fixed for VfW (I hope :))
author arpi_esp
date Sun, 03 Jun 2001 23:54:41 +0000
parents 3bcc435cd5a2
children d159308be231
files mplayer.c
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mplayer.c	Sun Jun 03 23:37:20 2001 +0000
+++ b/mplayer.c	Sun Jun 03 23:54:41 2001 +0000
@@ -1651,8 +1651,9 @@
 //      sh_video->bih->biWidth = 1280;
 //      sh_video->o_bih.biWidth = 1280;
 	    //      ret = ICDecompress(avi_header.hic, ICDECOMPRESS_NOTKEYFRAME|(ICDECOMPRESS_HURRYUP|ICDECOMPRESS_PREROL), 
-      ret = ICDecompress(sh_video->hic, ICDECOMPRESS_NOTKEYFRAME |
-                        ( (drop_frame==2)?(ICDECOMPRESS_HURRYUP|ICDECOMPRESS_PREROL):0 ) , 
+      ret = ICDecompress(sh_video->hic, 
+	  ( (d_video->flags&1) ? 0 : ICDECOMPRESS_NOTKEYFRAME ) |
+	  ( (drop_frame==2 && !(d_video->flags&1))?(ICDECOMPRESS_HURRYUP|ICDECOMPRESS_PREROL):0 ) , 
                          sh_video->bih,   start,
                         &sh_video->o_bih,
                         drop_frame ? 0 : sh_video->our_out_buffer);