* video.h: video decoder using ffmpeg library
*****************************************************************************
* Copyright (C) 1999-2001 VideoLAN
- * $Id: video.h,v 1.3 2002/11/06 21:48:24 gbazin Exp $
+ * $Id: video.h,v 1.5 2002/12/06 11:53:45 fenrir Exp $
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
*
typedef struct vdec_thread_s
{
DECODER_THREAD_COMMON
-
+#if LIBAVCODEC_BUILD >= 4641
+ AVVideoFrame *p_ff_pic;
+#else
+ AVPicture ff_pic, *p_ff_pic;
+#endif
BITMAPINFOHEADER *p_format;
vout_thread_t *p_vout;
int b_hurry_up;
int i_frame_error;
int i_frame_skip;
- int i_frame_late; /* how many decoded frames are late */
+ int i_frame_late; /* how many decoded frames are late */
+
+ int i_frame_count; /* to emulate pts */
/* for direct rendering */
int b_direct_rendering;
- picture_t *p_lastpic;
- picture_t *p_secondlastpic;
} vdec_thread_t;