aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/smacker.c
diff options
context:
space:
mode:
authorKostya Shishkov <kostya.shishkov@gmail.com>2013-05-27 05:45:29 +0200
committerKostya Shishkov <kostya.shishkov@gmail.com>2013-05-28 09:03:41 +0200
commit851bc1d6be0c7485609e0208d188f3edbc4ade13 (patch)
treee7ee89e166b12c5713def8a9f9a8334b7a6efb63 /libavformat/smacker.c
parent9b6f47c44807f14788e909c4c71db58eebba8277 (diff)
downloadffmpeg-851bc1d6be0c7485609e0208d188f3edbc4ade13.tar.gz
smacker: assign video frame PTS
Diffstat (limited to 'libavformat/smacker.c')
-rw-r--r--libavformat/smacker.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/smacker.c b/libavformat/smacker.c
index e14424323e..fcca5c6e3a 100644
--- 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);