fix eof with new ffmpeg ABI, see:252500a78f

Origin commit data
------------------
Branch: master
Commit: ec0f9a3531
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2021-11-01 (Mon, 01 Nov 2021)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
Jacek Jendrzej
2021-11-01 21:08:08 +01:00
committed by vanhofen
parent 048116d7cc
commit 585908a5b6

View File

@@ -1396,6 +1396,10 @@ int SAM_ReadFunc(void *ptr, uint8_t *buffer, int lSize)
if (!io->pMoovFile)
{
ret = (int)fread((void *) buffer, (size_t) 1, (size_t) lSize, io->pFile);
#if (LIBAVFORMAT_VERSION_MAJOR > 58) || ((LIBAVFORMAT_VERSION_MAJOR == 79) && (LIBAVFORMAT_VERSION_MINOR > 100))
if(ret==0)
ret = AVERROR_EOF;
#endif
}
else
{