# HG changeset patch # User bcoudurier # Date 1165419972 0 # Node ID 1eaba8bc0ab123454d068114672f29c3ce416eae # Parent 504ceaa50e315b9b779e94fbc54532d760d8503f do not truncate pts/dts if value is AV_NOPTS_VALUE, patch by Andy Parkins, andrew parkins at 360visiontechnology com diff -r 504ceaa50e31 -r 1eaba8bc0ab1 utils.c --- a/utils.c Wed Dec 06 00:23:04 2006 +0000 +++ b/utils.c Wed Dec 06 15:46:12 2006 +0000 @@ -2288,8 +2288,12 @@ // if(pkt->dts < 0) // pkt->dts= 0; //this happens for low_delay=0 and b frames, FIXME, needs further invstigation about what we should do here - pkt->pts &= pts_mask; - pkt->dts &= pts_mask; + if( pkt->pts != AV_NOPTS_VALUE ) { + pkt->pts &= pts_mask; + } + if( pkt->dts != AV_NOPTS_VALUE ) { + pkt->dts &= pts_mask; + } } /**