[FFmpeg-cvslog] Remove pts rescaling code that is useless after 2ff4a2764e5ea74c85b4231bc110540278cf3708

Reimar Döffinger git
Mon Jan 31 19:31:27 CET 2011


ffmpeg | branch: master | Reimar D?ffinger <Reimar.Doeffinger at gmx.de> | Mon Jan 31 19:25:59 2011 +0100| [b482c001214fc519cf6be7802458bf8e441991b7] | committer: Reimar D?ffinger

Remove pts rescaling code that is useless after 2ff4a2764e5ea74c85b4231bc110540278cf3708

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b482c001214fc519cf6be7802458bf8e441991b7
---

 libavformat/vc1testenc.c |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)

diff --git a/libavformat/vc1testenc.c b/libavformat/vc1testenc.c
index 6023884..567efb2 100644
--- a/libavformat/vc1testenc.c
+++ b/libavformat/vc1testenc.c
@@ -56,14 +56,11 @@ static int vc1test_write_packet(AVFormatContext *s, AVPacket *pkt)
 {
     RCVContext *ctx = s->priv_data;
     ByteIOContext *pb = s->pb;
-    uint32_t pts = av_rescale(pkt->pts,
-                              1000 * (uint64_t)s->streams[0]->time_base.num,
-                              s->streams[0]->time_base.den);
 
     if (!pkt->size)
         return 0;
     put_le32(pb, pkt->size | ((pkt->flags & AV_PKT_FLAG_KEY) ? 0x80000000 : 0));
-    put_le32(pb, pts);
+    put_le32(pb, pkt->pts);
     put_buffer(pb, pkt->data, pkt->size);
     put_flush_packet(pb);
     ctx->frames++;




More information about the ffmpeg-cvslog mailing list