mirror of https://git.ffmpeg.org/ffmpeg.git
avformat/smacker: Set audio duration
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
This commit is contained in:
parent
edea156579
commit
40494460f5
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue