# HG changeset patch # User michael # Date 1189013139 0 # Node ID eb2ffde46a50a07189f1ae3a970a142039b2fcb3 # Parent 62a515b4f65bec074a8c4c6a5b316d6bb04b214c revert 10409 there is no need for put_timestamp to be exported it is not used outside the PES code diff -r 62a515b4f65b -r eb2ffde46a50 mpegenc.c --- a/mpegenc.c Wed Sep 05 17:14:25 2007 +0000 +++ b/mpegenc.c Wed Sep 05 17:25:39 2007 +0000 @@ -478,7 +478,7 @@ return AVERROR(ENOMEM); } -void ff_mpeg_put_ts(ByteIOContext *pb, int id, int64_t timestamp) +static inline void put_timestamp(ByteIOContext *pb, int id, int64_t timestamp) { put_byte(pb, (id << 4) | @@ -856,9 +856,9 @@ put_byte(&ctx->pb, header_len - 3 + stuffing_size); if (pes_flags & 0x80) /*write pts*/ - ff_mpeg_put_ts(&ctx->pb, (pes_flags & 0x40) ? 0x03 : 0x02, pts); + put_timestamp(&ctx->pb, (pes_flags & 0x40) ? 0x03 : 0x02, pts); if (pes_flags & 0x40) /*write dts*/ - ff_mpeg_put_ts(&ctx->pb, 0x01, dts); + put_timestamp(&ctx->pb, 0x01, dts); if (pes_flags & 0x01) { /*write pes extension*/ put_byte(&ctx->pb, 0x10); /* flags */ @@ -873,10 +873,10 @@ } else { if (pts != AV_NOPTS_VALUE) { if (dts != pts) { - ff_mpeg_put_ts(&ctx->pb, 0x03, pts); - ff_mpeg_put_ts(&ctx->pb, 0x01, dts); + put_timestamp(&ctx->pb, 0x03, pts); + put_timestamp(&ctx->pb, 0x01, dts); } else { - ff_mpeg_put_ts(&ctx->pb, 0x02, pts); + put_timestamp(&ctx->pb, 0x02, pts); } } else { put_byte(&ctx->pb, 0x0f);