Commit 310d6b36 authored by bcoudurier's avatar bcoudurier

do not truncate pts/dts if value is AV_NOPTS_VALUE, patch by Andy Parkins,...

do not truncate pts/dts if value is AV_NOPTS_VALUE, patch by Andy Parkins, andrew parkins at 360visiontechnology com

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@7234 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 06544159
......@@ -2288,8 +2288,12 @@ static void truncate_ts(AVStream *st, AVPacket *pkt){
// 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;
}
}
/**
......
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