changeset 2251:b7950418654d libavformat

round timestamps up, k2 broadcast server seems to need it
author bcoudurier
date Fri, 13 Jul 2007 17:06:58 +0000
parents bfe6061f9f25
children 708e6e93d6f2
files gxfenc.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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);