avformat/smacker: Set audio duration

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
pull/345/head
Andreas Rheinhardt 5 years ago
parent edea156579
commit 40494460f5
  1. 3
      libavformat/smacker.c

@ -315,7 +315,8 @@ static int smacker_read_packet(AVFormatContext *s, AVPacket *pkt)
}
pkt->stream_index = smk->indexes[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;
return 0;
}

Loading…
Cancel
Save