Fix errors in ipod-specific h264_player from 3a57f2f721

Change-Id: I40148d33932eeefb5de73f07104cef78d0739b5d
This commit is contained in:
Aidan MacDonald 2026-09-17 21:59:30 +01:00
parent 861e53095f
commit 98a55f623b
2 changed files with 2 additions and 2 deletions

View file

@ -1353,7 +1353,7 @@ int mp4v_demux_open(const char *filepath,
fd = rb->open(filepath, O_RDONLY);
if (fd < 0)
return -1;
file_size = rb->filesize(fd);
file_size = rb->ffilesize(fd);
if (file_size <= 0 || (uint64_t)file_size > UINT32_MAX)
{
rb->close(fd);

View file

@ -450,7 +450,7 @@ int video_audio_init(const char *filepath,
audio_fd = rb->open(filepath, O_RDONLY);
if (audio_fd < 0)
return -1;
audio_file_size = rb->filesize(audio_fd);
audio_file_size = rb->ffilesize(audio_fd);
if (audio_file_size <= 0)
{
rb->close(audio_fd);