aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>2007-07-13 17:06:58 +0000
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>2007-07-13 17:06:58 +0000
commit51d2ff8044ac1c4ebb2a81ca20bea088f471865e (patch)
tree8a7e596f811edf850cd459d504bd3ecd7b46ad62 /libavformat
parent7495c3066d7b67bbc74b1d5565684ff48e430099 (diff)
downloadffmpeg-51d2ff8044ac1c4ebb2a81ca20bea088f471865e.tar.gz
round timestamps up, k2 broadcast server seems to need it
Originally committed as revision 9630 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/gxfenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/gxfenc.c b/libavformat/gxfenc.c
index 39b9ed3e19..7e833406ae 100644
--- a/libavformat/gxfenc.c
+++ b/libavformat/gxfenc.c
@@ -710,7 +710,7 @@ static int gxf_parse_mpeg_frame(GXFStreamContext *sc, const uint8_t *buf, int si
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);