mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-libstb-hal.git
synced 2025-08-26 23:12:44 +02:00
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:
@@ -1396,6 +1396,10 @@ int SAM_ReadFunc(void *ptr, uint8_t *buffer, int lSize)
|
|||||||
if (!io->pMoovFile)
|
if (!io->pMoovFile)
|
||||||
{
|
{
|
||||||
ret = (int)fread((void *) buffer, (size_t) 1, (size_t) lSize, io->pFile);
|
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
|
else
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user