diff --git a/FFmpegSource/ffmatroskasource.cpp b/FFmpegSource/ffmatroskasource.cpp index 155427a0d..563c0f11d 100644 --- a/FFmpegSource/ffmatroskasource.cpp +++ b/FFmpegSource/ffmatroskasource.cpp @@ -370,9 +370,6 @@ int FFMatroskaSource::DecodeNextFrame(AVFrame *AFrame, int64_t *AFirstStartTime, FrameSize = ReadFrame(FilePos, FrameSize, VideoCS, Env); Ret = avcodec_decode_video(VideoCodecContext, AFrame, &FrameFinished, Buffer, FrameSize); - if (Ret < 0) - goto Error; - if (FrameFinished) goto Done; } @@ -381,7 +378,7 @@ int FFMatroskaSource::DecodeNextFrame(AVFrame *AFrame, int64_t *AFirstStartTime, if (VideoCodecContext->has_b_frames) Ret = avcodec_decode_video(VideoCodecContext, AFrame, &FrameFinished, NULL, 0); - if (!FrameFinished || Ret < 0) + if (!FrameFinished) goto Error; Error: diff --git a/FFmpegSource/ffmpegsource.cpp b/FFmpegSource/ffmpegsource.cpp index 8febfc0ef..60328d0c2 100644 --- a/FFmpegSource/ffmpegsource.cpp +++ b/FFmpegSource/ffmpegsource.cpp @@ -246,9 +246,6 @@ int FFmpegSource::DecodeNextFrame(AVFrame *AFrame, int64_t *AStartTime) { *AStartTime = Packet.dts; Ret = avcodec_decode_video(VideoCodecContext, AFrame, &FrameFinished, Packet.data, Packet.size); - - if (Ret < 0) - goto Error; } av_free_packet(&Packet); @@ -261,7 +258,7 @@ int FFmpegSource::DecodeNextFrame(AVFrame *AFrame, int64_t *AStartTime) { if (VideoCodecContext->has_b_frames) Ret = avcodec_decode_video(VideoCodecContext, AFrame, &FrameFinished, NULL, 0); - if (!FrameFinished || Ret < 0) + if (!FrameFinished) goto Error; // Ignore errors for now diff --git a/FFmpegSource/ffmpegsource.html b/FFmpegSource/ffmpegsource.html index dc78ff307..8fc0f469f 100644 --- a/FFmpegSource/ffmpegsource.html +++ b/FFmpegSource/ffmpegsource.html @@ -165,6 +165,10 @@ Note that --enable-w32threads is required for multithreaded decoding to work.

Changes