Revision b482c001 libavformat/vc1testenc.c

View differences:

libavformat/vc1testenc.c
56 56
{
57 57
    RCVContext *ctx = s->priv_data;
58 58
    ByteIOContext *pb = s->pb;
59
    uint32_t pts = av_rescale(pkt->pts,
60
                              1000 * (uint64_t)s->streams[0]->time_base.num,
61
                              s->streams[0]->time_base.den);
62 59

  
63 60
    if (!pkt->size)
64 61
        return 0;
65 62
    put_le32(pb, pkt->size | ((pkt->flags & AV_PKT_FLAG_KEY) ? 0x80000000 : 0));
66
    put_le32(pb, pts);
63
    put_le32(pb, pkt->pts);
67 64
    put_buffer(pb, pkt->data, pkt->size);
68 65
    put_flush_packet(pb);
69 66
    ctx->frames++;

Also available in: Unified diff