[FFmpeg-devel] Patch: avformat_index_get_entry and avformat_index_get_entry_from_timestamp const correctness
Andreas Rheinhardt
andreas.rheinhardt at outlook.com
Thu May 15 15:44:52 EEST 2025
Martijn Otto:
> static av_always_inline const FFStream *cffstream(const AVStream *st)
> {
> - return (FFStream*)st;
> + return (const FFStream*)st;
> }
Your patch should be applied on top of git master, not some old version.
The above change is identical to 185d0acdc7a67b7d3d78d4c917334c4c3bf9accd.
Anyway, I remember that someone (IIRC Anton Khirnov) objected to the
const when this was introduced.
- Andreas
More information about the ffmpeg-devel
mailing list