[FFmpeg-devel] [PATCHv2 1/4] avcodec/mm: set audio pts proportionally to audio offset

Peter Ross pross at xvid.org
Sat Nov 16 10:41:42 EET 2024


On Thu, Jun 27, 2024 at 08:08:14AM +1000, Peter Ross wrote:
> ---
>  libavformat/mm.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/libavformat/mm.c b/libavformat/mm.c
> index 23c025d852..a40b5c44bb 100644
> --- a/libavformat/mm.c
> +++ b/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 :
> -- 
> 2.43.0

https://lists.ffmpeg.org/pipermail/ffmpeg-devel/2024-June/330307.html

will apply this patch set soon.

-- Peter
(A907 E02F A6E5 0CD2 34CD 20D2 6760 79C5 AC40 DD6B)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20241116/18357d4e/attachment.sig>


More information about the ffmpeg-devel mailing list