[vlc-devel] commit: Added QTYPE_NONE to easily detect if qp are present (vout). ( Laurent Aimar )

git version control git at videolan.org
Tue Feb 17 20:17:02 CET 2009


vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Tue Feb 17 00:14:32 2009 +0100| [43ff738b1b843958a33ae98162228cb0f1527773] | committer: Laurent Aimar 

Added QTYPE_NONE to easily detect if qp are present (vout).

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=43ff738b1b843958a33ae98162228cb0f1527773
---

 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 23e98ad..059ffea 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 60c1fca..ffec72d 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 );
 




More information about the vlc-devel mailing list