mirror of https://git.ffmpeg.org/ffmpeg.git
Remove pts rescaling code that is useless after 2ff4a2764e
This commit is contained in:
parent
12763671e2
commit
b482c00121
|
@ -56,14 +56,11 @@ static int vc1test_write_packet(AVFormatContext *s, AVPacket *pkt)
|
||||||
{
|
{
|
||||||
RCVContext *ctx = s->priv_data;
|
RCVContext *ctx = s->priv_data;
|
||||||
ByteIOContext *pb = s->pb;
|
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)
|
if (!pkt->size)
|
||||||
return 0;
|
return 0;
|
||||||
put_le32(pb, pkt->size | ((pkt->flags & AV_PKT_FLAG_KEY) ? 0x80000000 : 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_buffer(pb, pkt->data, pkt->size);
|
||||||
put_flush_packet(pb);
|
put_flush_packet(pb);
|
||||||
ctx->frames++;
|
ctx->frames++;
|
||||||
|
|
Loading…
Reference in New Issue