# HG changeset patch # User michael # Date 1212453836 0 # Node ID e38326ffbb5eca3f8ea64092df9498c0a19ebc5c # Parent f386245ae6f784765f7aa7f08cff48cb0991085c Do not set pts in update_initial_durations() if stream has b frames. diff -r f386245ae6f7 -r e38326ffbb5e utils.c --- a/utils.c Mon Jun 02 23:37:14 2008 +0000 +++ b/utils.c Tue Jun 03 00:43:56 2008 +0000 @@ -645,7 +645,9 @@ 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