projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9b6f47c
)
smacker: assign video frame PTS
author
Kostya Shishkov
<kostya.shishkov@gmail.com>
Mon, 27 May 2013 03:45:29 +0000
(
05:45
+0200)
committer
Kostya Shishkov
<kostya.shishkov@gmail.com>
Tue, 28 May 2013 07:03:41 +0000
(09:03 +0200)
libavformat/smacker.c
patch
|
blob
|
history
diff --git
a/libavformat/smacker.c
b/libavformat/smacker.c
index
e144243
..
fcca5c6
100644
(file)
--- a/
libavformat/smacker.c
+++ b/
libavformat/smacker.c
@@
-334,6
+334,7
@@
static int smacker_read_packet(AVFormatContext *s, AVPacket *pkt)
if(ret != frame_size)
return AVERROR(EIO);
pkt->stream_index = smk->videoindex;
+ pkt->pts = smk->cur_frame;
pkt->size = ret + 769;
smk->cur_frame++;
smk->nextpos = avio_tell(s->pb);