[vlc-devel] Access Unit of size=128 Pts=0 Dts=0 passed to decoder

Laurent Aimar fenrir at elivagar.org
Tue Sep 6 20:27:45 CEST 2011


Hi,

On Fri, Aug 19, 2011 at 10:46:58AM +0200, Ralf Globisch wrote:
> I hope someone can help me or point me in the right direction:
> I have implemented a custom VLC H263 decoder plugin and have a quick question.
> The decoder is fed data from the live555 RTSP plugin and seems to work
> correctly.
> 
> Sometimes an access unit of size 128 bytes is sent to the decoder with
> a dts and pts of 0.
 You should look at the buffer flags (block_t::i_flags). Such packets probably
have the BLOCK_FLAG_DISCONTINUITY or/and BLOCK_FLAG_CORRUPTED flag set and
should be discarded by your decoder. On reception of such packet you should
also reset any state related to timestamp.

-- 
fenrir



More information about the vlc-devel mailing list