avcodec/mm: set audio pts proportionally to audio offset

master
Peter Ross 7 months ago
parent 3528bfed45
commit ac2442f0a7
  1. 3
      libavformat/mm.c

@ -180,7 +180,8 @@ static int read_packet(AVFormatContext *s,
if ((ret = av_get_packet(s->pb, pkt, length)) < 0)
return ret;
pkt->stream_index = 1;
pkt->pts = mm->audio_pts++;
pkt->pts = mm->audio_pts;
mm->audio_pts += length;
return 0;
default :

Loading…
Cancel
Save