changeset 5875:bcf5220e98af

support hurryup flag (-(hard)framedrop)
author arpi
date Sat, 27 Apr 2002 23:45:00 +0000
parents 59a28f4efbb4
children 5ebafc7f5efe
files libmpcodecs/vd_ffmpeg.c
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/vd_ffmpeg.c	Sat Apr 27 23:35:23 2002 +0000
+++ b/libmpcodecs/vd_ffmpeg.c	Sat Apr 27 23:45:00 2002 +0000
@@ -160,7 +160,11 @@
 	    avctx->opaque=sh->video_out;
 	}
     }
-    
+
+#if LIBAVCODEC_BUILD > 4603
+    avctx->hurry_up=(flags&3)?((flags&2)?2:1):0;
+#endif
+
     ret = avcodec_decode_video(avctx, &lavc_picture,
 	     &got_picture, data, len);