You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
avformat/smacker: Set audio duration
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
This commit is contained in:
@@ -315,7 +315,8 @@ static int smacker_read_packet(AVFormatContext *s, AVPacket *pkt)
|
|||||||
}
|
}
|
||||||
pkt->stream_index = smk->indexes[i];
|
pkt->stream_index = smk->indexes[i];
|
||||||
pkt->pts = smk->aud_pts[i];
|
pkt->pts = smk->aud_pts[i];
|
||||||
smk->aud_pts[i] += AV_RL32(pkt->data);
|
pkt->duration = AV_RL32(pkt->data);
|
||||||
|
smk->aud_pts[i] += pkt->duration;
|
||||||
smk->next_audio_index = i + 1;
|
smk->next_audio_index = i + 1;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user