You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-09-16 08:36:51 +02:00
smacker: assign video frame PTS
This commit is contained in:
@@ -334,6 +334,7 @@ static int smacker_read_packet(AVFormatContext *s, AVPacket *pkt)
|
|||||||
if(ret != frame_size)
|
if(ret != frame_size)
|
||||||
return AVERROR(EIO);
|
return AVERROR(EIO);
|
||||||
pkt->stream_index = smk->videoindex;
|
pkt->stream_index = smk->videoindex;
|
||||||
|
pkt->pts = smk->cur_frame;
|
||||||
pkt->size = ret + 769;
|
pkt->size = ret + 769;
|
||||||
smk->cur_frame++;
|
smk->cur_frame++;
|
||||||
smk->nextpos = avio_tell(s->pb);
|
smk->nextpos = avio_tell(s->pb);
|
||||||
|
Reference in New Issue
Block a user