1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-01-24 13:56:33 +02:00
FFmpeg/libavformat
Andreas Rheinhardt 1889e3166c libavformat/mux: Fix audio_preload
Commit 31f9032b added the audio_preload feature; its goal is to
interleave audio earlier than the rest. Unfortunately, it has never ever
worked, because the check for whether a packet should be interleaved
before or after another packet was completely wrong: When audio_preload
vanishes, interleave_compare_dts returns 1 if the new packet should be
interleaved earlier than the packet it is compared with and that is what
the rest of the code expects. But the codepath used when audio_preload is
set does the opposite.

Also fixes potential undefined behaviour (namely signed integer
overflow).

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2019-06-26 19:05:29 +02:00
..
2019-05-20 11:58:12 -07:00
2019-05-20 11:58:12 -07:00
2019-03-20 18:38:48 +01:00
2019-05-20 11:58:12 -07:00
2019-06-14 13:21:38 +08:00
2019-06-26 19:05:29 +02:00
2019-05-20 11:58:12 -07:00
2019-06-10 21:35:20 +02:00
2018-09-11 21:48:49 +01:00
2019-06-12 20:06:20 +10:00
2019-03-20 18:38:48 +01:00
2019-06-26 19:05:29 +02:00
2019-06-14 21:36:39 +02:00
2019-06-21 18:28:00 +02:00