Commit 7131ad34 authored by michael's avatar michael

dont predict missing timestamps if we lack the required information to do so


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@3898 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 54bd38f6
......@@ -1115,7 +1115,7 @@ static int output_packet(AVInputStream *ist, int ist_index,
} else if (pkt->dts != AV_NOPTS_VALUE) { //FIXME seems redundant, as libavformat does this too
ist->next_pts = ist->pts = pkt->dts;
} else {
assert(ist->pts == ist->next_pts);
// assert(ist->pts == ist->next_pts);
}
if (pkt == NULL) {
......
......@@ -745,7 +745,7 @@ static void compute_pkt_fields(AVFormatContext *s, AVStream *st,
st->last_IP_pts= pkt->pts;
/* cannot compute PTS if not present (we can compute it only
by knowing the futur */
} else {
} else if(pkt->pts != AV_NOPTS_VALUE || pkt->dts != AV_NOPTS_VALUE || pkt->duration){
if(pkt->pts != AV_NOPTS_VALUE && pkt->duration){
int64_t old_diff= ABS(st->cur_dts - pkt->duration - pkt->pts);
int64_t new_diff= ABS(st->cur_dts - pkt->pts);
......
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