Added QTYPE_NONE to easily detect if qp are present (vout).
authorLaurent Aimar <fenrir@videolan.org>
Mon, 16 Feb 2009 23:14:32 +0000 (00:14 +0100)
committerLaurent Aimar <fenrir@videolan.org>
Tue, 17 Feb 2009 18:53:18 +0000 (19:53 +0100)
include/vlc_vout.h
src/video_output/vout_pictures.c

index 23e98ad..059ffea 100644 (file)
@@ -266,6 +266,8 @@ enum
 /* Quantification type */
 enum
 {
+    QTYPE_NONE,
+
     QTYPE_MPEG1,
     QTYPE_MPEG2,
     QTYPE_H264,
index 60c1fca..ffec72d 100644 (file)
@@ -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 );