Browse Source

mux: drop one of the hacks comprising compute_pkt_fields2()

All encoders should output proper timestamps now.
tags/n2.3
Anton Khirnov 11 years ago
parent
commit
ed7922faac
1 changed files with 0 additions and 7 deletions
  1. +0
    -7
      libavformat/mux.c

+ 0
- 7
libavformat/mux.c View File

@@ -346,13 +346,6 @@ static int compute_pkt_fields2(AVFormatContext *s, AVStream *st, AVPacket *pkt)
if (pkt->pts == AV_NOPTS_VALUE && pkt->dts != AV_NOPTS_VALUE && delay == 0)
pkt->pts = pkt->dts;

//XXX/FIXME this is a temporary hack until all encoders output pts
if ((pkt->pts == 0 || pkt->pts == AV_NOPTS_VALUE) && pkt->dts == AV_NOPTS_VALUE && !delay) {
pkt->dts =
// pkt->pts= st->cur_dts;
pkt->pts = st->pts.val;
}

//calculate dts from pts
if (pkt->pts != AV_NOPTS_VALUE && pkt->dts == AV_NOPTS_VALUE && delay <= MAX_REORDER_DELAY) {
st->pts_buffer[0] = pkt->pts;


Loading…
Cancel
Save