14 lines
697 B
Diff
14 lines
697 B
Diff
diff --git a/src/osgPlugins/ffmpeg/FFmpegDecoder.cpp b/src/osgPlugins/ffmpeg/FFmpegDecoder.cpp
|
|
index 497969f..4ec9f13 100644
|
|
--- a/src/osgPlugins/ffmpeg/FFmpegDecoder.cpp
|
|
+++ b/src/osgPlugins/ffmpeg/FFmpegDecoder.cpp
|
|
@@ -279,7 +279,7 @@ bool FFmpegDecoder::readNextPacketNormal()
|
|
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;
|