From b9cee5bab06b073cff91b8ca618a6452a354a45e Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Mon, 1 Mar 2021 21:12:47 +0100 Subject: Key _next_time with the audio stream pointer. --- src/lib/ffmpeg_decoder.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lib/ffmpeg_decoder.h') diff --git a/src/lib/ffmpeg_decoder.h b/src/lib/ffmpeg_decoder.h index 58120da33..a0a93c9a0 100644 --- a/src/lib/ffmpeg_decoder.h +++ b/src/lib/ffmpeg_decoder.h @@ -58,7 +58,7 @@ private: int bytes_per_audio_sample (std::shared_ptr stream) const; std::shared_ptr audio_stream_from_index (int index) const; - void process_audio_frame (std::shared_ptr stream, int stream_index, int64_t packet_pts); + void process_audio_frame (std::shared_ptr stream, int64_t packet_pts); bool decode_video_packet (AVPacket* packet); void decode_audio_packet (AVPacket* packet); @@ -80,5 +80,5 @@ private: std::shared_ptr _black_image; - std::vector > _next_time; + std::map, boost::optional> _next_time; }; -- cgit v1.2.3