# HG changeset patch # User bcoudurier # Date 1184346418 0 # Node ID b7950418654da33e0763ec4f673ba08912f167aa # Parent bfe6061f9f25bba46d431f8432668db29ef10f01 round timestamps up, k2 broadcast server seems to need it diff -r bfe6061f9f25 -r b7950418654d gxfenc.c --- a/gxfenc.c Fri Jul 13 12:12:38 2007 +0000 +++ b/gxfenc.c Fri Jul 13 17:06:58 2007 +0000 @@ -710,7 +710,7 @@ static int gxf_write_media_preamble(ByteIOContext *pb, GXFContext *ctx, AVPacket *pkt, int size) { GXFStreamContext *sc = &ctx->streams[pkt->stream_index]; - int64_t dts = av_rescale(pkt->dts, ctx->sample_rate, sc->codec->time_base.den); + int64_t dts = av_rescale_rnd(pkt->dts, ctx->sample_rate, sc->codec->time_base.den, AV_ROUND_UP); put_byte(pb, sc->media_type); put_byte(pb, sc->index);