Browse Source

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
tags/v0.5
Andy Parkins Baptiste Coudurier 19 years ago
parent
commit
8533284dae
1 changed files with 6 additions and 2 deletions
  1. +6
    -2
      libavformat/utils.c

+ 6
- 2
libavformat/utils.c View File

@@ -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;
}
}

/**


Loading…
Cancel
Save