]> git.sesse.net Git - vlc/commitdiff
invmem: fix a pts issue causing the output to stays black
authorLudovic Fauvet <etix@l0cal.com>
Sun, 26 Apr 2009 09:54:13 +0000 (11:54 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Sun, 26 Apr 2009 13:09:42 +0000 (15:09 +0200)
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/codec/invmem.c

index 4a2a91be9bd9d5c7b6506b88a4d706ea97668390..396e80c58ad677126e6583f3817a4ad9e97dd46d 100644 (file)
@@ -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 );