From 43ff738b1b843958a33ae98162228cb0f1527773 Mon Sep 17 00:00:00 2001 From: Laurent Aimar Date: Tue, 17 Feb 2009 00:14:32 +0100 Subject: [PATCH] Added QTYPE_NONE to easily detect if qp are present (vout). --- include/vlc_vout.h | 2 ++ src/video_output/vout_pictures.c | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/include/vlc_vout.h b/include/vlc_vout.h index 23e98adc4d..059ffea33b 100644 --- a/include/vlc_vout.h +++ b/include/vlc_vout.h @@ -266,6 +266,8 @@ enum /* Quantification type */ enum { + QTYPE_NONE, + QTYPE_MPEG1, QTYPE_MPEG2, QTYPE_H264, diff --git a/src/video_output/vout_pictures.c b/src/video_output/vout_pictures.c index 60c1fca80e..ffec72ded7 100644 --- a/src/video_output/vout_pictures.c +++ b/src/video_output/vout_pictures.c @@ -710,9 +710,9 @@ int __vout_InitPicture( vlc_object_t *p_this, picture_t *p_pic, p_pic->pf_unlock = NULL; p_pic->i_refcount = 0; - p_pic->p_q = NULL; + p_pic->i_qtype = QTYPE_NONE; p_pic->i_qstride = 0; - p_pic->i_qtype = 0; + p_pic->p_q = NULL; vout_InitFormat( &p_pic->format, i_chroma, i_width, i_height, i_aspect ); -- 2.39.2