You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
do not truncate pts/dts if value is AV_NOPTS_VALUE, patch by Andy Parkins, andrew parkins at 360visiontechnology com
Originally committed as revision 7234 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
committed by
Baptiste Coudurier
parent
119aae1dd5
commit
8533284dae
@@ -2288,8 +2288,12 @@ static void truncate_ts(AVStream *st, AVPacket *pkt){
|
|||||||
// if(pkt->dts < 0)
|
// 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->dts= 0; //this happens for low_delay=0 and b frames, FIXME, needs further invstigation about what we should do here
|
||||||
|
|
||||||
|
if( pkt->pts != AV_NOPTS_VALUE ) {
|
||||||
pkt->pts &= pts_mask;
|
pkt->pts &= pts_mask;
|
||||||
|
}
|
||||||
|
if( pkt->dts != AV_NOPTS_VALUE ) {
|
||||||
pkt->dts &= pts_mask;
|
pkt->dts &= pts_mask;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user