diff options
author | Andreas Rheinhardt <[email protected]> | 2021-08-27 13:17:09 +0200 |
---|---|---|
committer | Andreas Rheinhardt <[email protected]> | 2021-08-31 17:00:42 +0200 |
commit | e04ddba64f4c389b33b07dba6adb89f3492b151c (patch) | |
tree | db0a63cdf1c15699b32409f9663e22ccd09fa550 /libavcodec/flacdec.c | |
parent | 6e0823ab83056e1a0905c64568738b7f2fb14f4d (diff) |
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 <[email protected]>
Signed-off-by: Andreas Rheinhardt <[email protected]>
Diffstat (limited to 'libavcodec/flacdec.c')
0 files changed, 0 insertions, 0 deletions