[FFmpeg-cvslog] smacker: assign video frame PTS
Kostya Shishkov
git at videolan.org
Tue May 28 12:04:18 CEST 2013
ffmpeg | branch: master | Kostya Shishkov <kostya.shishkov at gmail.com> | Mon May 27 05:45:29 2013 +0200| [851bc1d6be0c7485609e0208d188f3edbc4ade13] | committer: Kostya Shishkov
smacker: assign video frame PTS
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=851bc1d6be0c7485609e0208d188f3edbc4ade13
---
libavformat/smacker.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavformat/smacker.c b/libavformat/smacker.c
index e144243..fcca5c6 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);
More information about the ffmpeg-cvslog
mailing list