*
*/
-#include <vlc/vlc.h>
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
+#include <vlc_common.h>
#include <vlc_vout.h>
#include <vlc_codec.h>
/*
* Check that first field went through OK. Otherwise,
* indicate bad frame.
- */
+ */
if (decoder->second_field)
{
mpeg2dec->xvmc_last_slice_code = (xxmc->decoded) ? 0 : -1;
if( ((code == mpeg2dec->xvmc_last_slice_code + 1 ||
code == mpeg2dec->xvmc_last_slice_code)) &&
- code <= mpeg2dec->xxmc_mb_pic_height )
+ (unsigned int)code <= mpeg2dec->xxmc_mb_pic_height )
{
/*
* Send this slice to the output plugin. May stall for a long
if (xxmc->result != 0)
{
//xxmc->proc_xxmc_flushsync( picture );
- xxmc->proc_xxmc_flush( picture );
+ xxmc->proc_xxmc_flush( picture );
mpeg2dec->xvmc_last_slice_code=-1;
return;
}
- if (code == mpeg2dec->xxmc_mb_pic_height)
+ if ( (unsigned int)code == mpeg2dec->xxmc_mb_pic_height)
{
/*
* We've encountered the last slice of this frame.
else
{
/*
- * An error has occured.
+ * An error has occurred.
*/
//printf("VLD XvMC: Slice error: code=%d\tlast slice code=%d\tmb_pic_height=%d\n", code, mpeg2dec->xvmc_last_slice_code,mpeg2dec->xxmc_mb_pic_height);
}
}
-void mpeg2_xxmc_vld_frame_complete(mpeg2dec_t *mpeg2dec, picture_t *picture, int code)
+void mpeg2_xxmc_vld_frame_complete(mpeg2dec_t *mpeg2dec, picture_t *picture, int code)
{
vlc_xxmc_t *xxmc = (vlc_xxmc_t *) picture->p_data;
vlc_vld_frame_t *vft = &xxmc->vld_frame;