Files
for-gentoo/dev-games/openscenegraph/files/osg_libav9.patch
T

14 lines
776 B
Diff

Index: git/OpenSceneGraph/src/osgPlugins/ffmpeg/FFmpegDecoder.cpp
===================================================================
--- git.orig/OpenSceneGraph/src/osgPlugins/ffmpeg/FFmpegDecoder.cpp 2014-01-24 20:57:27.419573010 +0100
+++ git/OpenSceneGraph/src/osgPlugins/ffmpeg/FFmpegDecoder.cpp 2014-01-24 20:57:27.411573010 +0100
@@ -279,7 +279,7 @@
int error = av_read_frame(m_format_context.get(), &packet);
if (error < 0)
{
- if (error == AVERROR_EOF || url_feof(m_format_context.get()->pb))
+ if (error == AVERROR_EOF || (m_format_context.get()->pb->eof_reached))
end_of_stream = true;
else {
OSG_FATAL << "av_read_frame() returned " << AvStrError(error) << std::endl;