diff options
author | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2007-07-13 17:06:58 +0000 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2007-07-13 17:06:58 +0000 |
commit | 51d2ff8044ac1c4ebb2a81ca20bea088f471865e (patch) | |
tree | 8a7e596f811edf850cd459d504bd3ecd7b46ad62 | |
parent | 7495c3066d7b67bbc74b1d5565684ff48e430099 (diff) | |
download | ffmpeg-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
-rw-r--r-- | libavformat/gxfenc.c | 2 | ||||
-rw-r--r-- | tests/libav.regression.ref | 2 |
2 files changed, 2 insertions, 2 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); diff --git a/tests/libav.regression.ref b/tests/libav.regression.ref index 787f238642..61340ff559 100644 --- a/tests/libav.regression.ref +++ b/tests/libav.regression.ref @@ -28,7 +28,7 @@ f8ad5bd78f4d012a8ce9570aa395ac54 *./tests/data/b-libav.flv 7820fa85ab86c62028d8dbda94589573 *./tests/data/b-libav.dv 3600000 ./tests/data/b-libav.dv ./tests/data/b-libav.dv CRC=0xf517e829 -feb04ba3cf4f607d5527664eb69ec72e *./tests/data/b-libav.gxf +15d8f0caadacf67a7e602fd244bc0c71 *./tests/data/b-libav.gxf 814640 ./tests/data/b-libav.gxf ./tests/data/b-libav.gxf CRC=0xa376c09e 9a9da315747599f7718cc9a9a09c21ff *./tests/data/b-libav.pbm |