OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1276367
)
Remove pts rescaling code that is useless after 2ff4a2764e5ea74c85b4231bc110540278cf3708
author
Reimar Döffinger
<Reimar.Doeffinger@gmx.de>
Mon, 31 Jan 2011 18:25:59 +0000
(19:25 +0100)
committer
Reimar Döffinger
<Reimar.Doeffinger@gmx.de>
Mon, 31 Jan 2011 18:31:04 +0000
(19:31 +0100)
libavformat/vc1testenc.c
patch
|
blob
|
history
diff --git
a/libavformat/vc1testenc.c
b/libavformat/vc1testenc.c
index
6023884
..
567efb2
100644
(file)
--- 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, p
kt->p
ts);
put_buffer(pb, pkt->data, pkt->size);
put_flush_packet(pb);
ctx->frames++;