1
0
Fork 0

Don't discard timestamps that are considered "invalid", still better then none at all.

This commit is contained in:
Hendrik Leppkes 2011-05-25 17:33:10 +02:00
parent 4fa8a07c5c
commit 17ee3fe6a7
Signed by: hendrik
GPG Key ID: 846079A4B0A7C1B5
1 changed files with 2 additions and 2 deletions

View File

@ -1043,9 +1043,9 @@ static void compute_pkt_fields(AVFormatContext *s, AVStream *st,
if (delay == 1 && pkt->dts == pkt->pts &&
pkt->dts != AV_NOPTS_VALUE && presentation_delayed) {
av_log(s, AV_LOG_DEBUG, "invalid dts/pts combination %"PRIi64"\n", pkt->dts);
if ( strcmp(s->iformat->name, "mov,mp4,m4a,3gp,3g2,mj2")
/*if ( strcmp(s->iformat->name, "mov,mp4,m4a,3gp,3g2,mj2")
&& strcmp(s->iformat->name, "flv")) // otherwise we discard correct timestamps for vc1-wmapro.ism
pkt->dts = AV_NOPTS_VALUE;
pkt->dts = AV_NOPTS_VALUE;*/
}
duration = av_mul_q((AVRational) {pkt->duration, 1}, st->time_base);