Commit 964361f6 authored by Gildas Bazin's avatar Gildas Bazin

* modules/packetizer/mpegvideo.c: corner case fix for pts/dts.

parent c491261e
......@@ -271,6 +271,15 @@ static block_t *Packetize( decoder_t *p_dec, block_t **pp_block )
p_pic->i_pts = p_sys->bytestream.p_block->i_pts;
p_pic->i_dts = p_sys->bytestream.p_block->i_dts;
/* FIXME ? Should we flush the bytestream chain before ? */
if( p_sys->bytestream.p_block->i_buffer ==
p_sys->bytestream.i_offset &&
p_sys->bytestream.p_block->p_next )
{
p_pic->i_pts = p_sys->bytestream.p_block->p_next->i_pts;
p_pic->i_dts = p_sys->bytestream.p_block->p_next->i_dts;
}
block_GetBytes( &p_sys->bytestream, p_pic->p_buffer,
p_pic->i_buffer );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment