Browse Source

mpegpsenc: move preload recalculation to where its needed

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n1.1
Michael Niedermayer 13 years ago
parent
commit
9fd0cf8a3b
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavformat/mpegenc.c

+ 1
- 1
libavformat/mpegenc.c View File

@@ -1070,8 +1070,8 @@ static int mpeg_mux_write_packet(AVFormatContext *ctx, AVPacket *pkt)
s->last_scr = dts + preload;
s->preload *= 2;
}
preload = av_rescale(s->preload, 90000, AV_TIME_BASE);
}
preload = av_rescale(s->preload, 90000, AV_TIME_BASE);

if (dts != AV_NOPTS_VALUE) dts += preload;
if (pts != AV_NOPTS_VALUE) pts += preload;


Loading…
Cancel
Save