[FFmpeg-devel] Calling avformat_find_stream_info() more than once
Andreas Rheinhardt
andreas.rheinhardt at outlook.com
Tue Feb 11 09:46:47 EET 2025
Scott Theisen:
> Hello all,
>
> avformat_find_stream_info() calls av_freep() on FFStream::info, which
> will cause a segmentation fault if it is called more than once on the
> same AVFormatContext (assuming it still has at least one of the
> AVStreams from when it was called previously).
>
> Is this intentional and should this be documented?
>
avformat_find_stream_info() is indeed not supposed to be called more
than once (on the same AVFormatContext).
- Andreas
More information about the ffmpeg-devel
mailing list