[FFmpeg-devel] [PATCH v2] avformat/mov: fix eof check in mov_read_iinf()

Michael Niedermayer michael at niedermayer.cc
Thu Feb 6 23:02:06 EET 2025


On Mon, Feb 03, 2025 at 06:25:53AM +0100, Kacper Michajłow wrote:
> This fix ensures that the loop stops early on EOF. The issue occurs
> because mov_read_infe() performs a version check and skips unsupported
> versions. The problem is that seeking within the stream clears the EOF
> flag, causing avio_feof() to not function as expected. This is resolved
> by moving the EOF check after reading the size and type, ensuring the
> EOF flag is set when necessary.
> 
> Signed-off-by: Kacper Michajłow <kasper93 at gmail.com>
> ---
>  libavformat/mov.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)

will apply

thx

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

z(9) = an object that transcends all computable functions describable
in finite terms. - ChatGPT in 2024
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250206/7c97da96/attachment.sig>


More information about the ffmpeg-devel mailing list