mirror of
https://github.com/Rockbox/rockbox.git
synced 2026-10-10 08:03:04 -04:00
Fix errors in ipod-specific h264_player from 3a57f2f721
Change-Id: I40148d33932eeefb5de73f07104cef78d0739b5d
This commit is contained in:
parent
861e53095f
commit
98a55f623b
2 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue