diff options
author | Kostya Shishkov <kostya.shishkov@gmail.com> | 2013-05-27 05:45:29 +0200 |
---|---|---|
committer | Kostya Shishkov <kostya.shishkov@gmail.com> | 2013-05-28 09:03:41 +0200 |
commit | 851bc1d6be0c7485609e0208d188f3edbc4ade13 (patch) | |
tree | e7ee89e166b12c5713def8a9f9a8334b7a6efb63 | |
parent | 9b6f47c44807f14788e909c4c71db58eebba8277 (diff) | |
download | ffmpeg-851bc1d6be0c7485609e0208d188f3edbc4ade13.tar.gz |
smacker: assign video frame PTS
-rw-r--r-- | libavformat/smacker.c | 1 |
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); |