diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-08-27 13:17:09 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-08-31 17:00:42 +0200 |
commit | e04ddba64f4c389b33b07dba6adb89f3492b151c (patch) | |
tree | db0a63cdf1c15699b32409f9663e22ccd09fa550 /libavcodec | |
parent | 6e0823ab83056e1a0905c64568738b7f2fb14f4d (diff) | |
download | ffmpeg-e04ddba64f4c389b33b07dba6adb89f3492b151c.tar.gz |
avformat/utils: Don't compare pointers when sorting chapters
The chapters are independently allocated, so that comparing
the pointers is undefined behaviour. Furthermore, its result
is not platform-independent (and may not even be deterministic
on a particular platform). So compare the chapters' ids instead.
(avpriv_new_chapter() ensures that there are no duplicate ids.)
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec')
0 files changed, 0 insertions, 0 deletions