[vlc-devel] commit: invmem: fix a pts issue causing the output to stays black ( Ludovic Fauvet )

git version control git at videolan.org
Sun Apr 26 15:10:24 CEST 2009


vlc | branch: master | Ludovic Fauvet <etix at l0cal.com> | Sun Apr 26 11:54:13 2009 +0200| [d244b78453c155e57d6de2f704c987ea0822cb34] | committer: Jean-Baptiste Kempf 

invmem: fix a pts issue causing the output to stays black

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 modules/codec/invmem.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/modules/codec/invmem.c b/modules/codec/invmem.c
index 4a2a91b..396e80c 100644
--- a/modules/codec/invmem.c
+++ b/modules/codec/invmem.c
@@ -192,6 +192,7 @@ static picture_t *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
     p_sys->p_pic = p_dec->pf_vout_buffer_new( p_dec );
     p_sys->p_pic->b_force = true;
     p_sys->p_pic->p->i_pitch = p_dec->p_sys->i_pitch;
+    p_sys->p_pic->date = p_block->i_pts > 0 ? p_block->i_pts : p_block->i_dts;
 
     // lock input and copy to picture
     p_sys->p_pic->p->p_pixels = p_sys->pf_lock( p_dec->p_sys->p_data );




More information about the vlc-devel mailing list