[vlc-commits] Set picture_t::i_nb_fields to 2 by default.
Laurent Aimar
git at videolan.org
Sun Feb 20 18:28:50 CET 2011
vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Sun Feb 20 17:53:13 2011 +0100| [a412c980cb02278c37ddfa2ef929bbc05e7fe11f] | committer: Laurent Aimar
Set picture_t::i_nb_fields to 2 by default.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a412c980cb02278c37ddfa2ef929bbc05e7fe11f
---
src/misc/picture.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/src/misc/picture.c b/src/misc/picture.c
index 7316bab..43e71d0 100644
--- a/src/misc/picture.c
+++ b/src/misc/picture.c
@@ -107,7 +107,7 @@ void picture_Reset( picture_t *p_picture )
p_picture->date = VLC_TS_INVALID;
p_picture->b_force = false;
p_picture->b_progressive = false;
- p_picture->i_nb_fields = 0;
+ p_picture->i_nb_fields = 2;
p_picture->b_top_field_first = false;
picture_CleanupQuant( p_picture );
}
@@ -136,6 +136,8 @@ int picture_Setup( picture_t *p_picture, vlc_fourcc_t i_chroma,
p_picture->p_release_sys = NULL;
p_picture->i_refcount = 0;
+ p_picture->i_nb_fields = 2;
+
p_picture->i_qtype = QTYPE_NONE;
p_picture->i_qstride = 0;
p_picture->p_q = NULL;
More information about the vlc-commits
mailing list