diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/media/UVideo.pas | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/media/UVideo.pas b/src/media/UVideo.pas index 7a3d066b..b8bd14a0 100644 --- a/src/media/UVideo.pas +++ b/src/media/UVideo.pas @@ -720,9 +720,14 @@ begin fEOF := true; Exit; end; + if (errnum = -541478725) then // LIBAVFORMAT_VERSION >= 56000000 tells us if EOF reached. + begin + fEOF := true; + Exit + end; // error occured, log and exit - Log.LogError('Video decoding error', 'TVideoPlayback_FFmpeg.DecodeFrame'); + Log.LogError('Video decoding error: ' + IntToStr(errnum), 'TVideoPlayback_FFmpeg.DecodeFrame'); Exit; end; |