lavf: add use_wallclock_as_timestamps
This may fix Ticket730 Reviewed-by: Nicolas George <nicolas.george@normalesup.org> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -776,6 +776,9 @@ int ff_read_packet(AVFormatContext *s, AVPacket *pkt)
|
||||
if(s->subtitle_codec_id)st->codec->codec_id= s->subtitle_codec_id;
|
||||
break;
|
||||
}
|
||||
/* TODO: audio: time filter; video: frame reordering (pts != dts) */
|
||||
if (s->use_wallclock_as_timestamps)
|
||||
pkt->dts = pkt->pts = av_rescale_q(av_gettime(), AV_TIME_BASE_Q, st->time_base);
|
||||
|
||||
if(!pktl && st->request_probe <= 0)
|
||||
return ret;
|
||||
|
||||
Reference in New Issue
Block a user