Commit f8096a77 authored by michael's avatar michael

Do not set pts in update_initial_durations() if stream has b frames.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@13639 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 2d7fc1bd
......@@ -645,7 +645,9 @@ static void update_initial_durations(AVFormatContext *s, AVStream *st, AVPacket
continue;
if(pktl->pkt.pts == pktl->pkt.dts && pktl->pkt.dts == AV_NOPTS_VALUE
&& !pktl->pkt.duration){
pktl->pkt.pts= pktl->pkt.dts= st->cur_dts;
pktl->pkt.dts= st->cur_dts;
if(!st->codec->has_b_frames)
pktl->pkt.pts= st->cur_dts;
st->cur_dts += pkt->duration;
pktl->pkt.duration= pkt->duration;
}else
......
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