Skip to content

Commit

Permalink
Merge pull request #16 from Claytonious/master
Browse files Browse the repository at this point in the history
Fix failure to decode on Mac OS X
  • Loading branch information
radek-k authored Dec 11, 2019
2 parents 15a70dc + 0894c9b commit 5a00354
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ private void ReadNextFrame()
DecodePacket(); // Gets the next packet and sends it to the decoder.
error = ffmpeg.avcodec_receive_frame(CodecPointer, decodedFrame.Pointer); // Tries to decode frame from the packets.
}
while (error == -ffmpeg.EAGAIN); // The EAGAIN code means that the frame decoding has not been completed and more packets are needed.
while (error == -ffmpeg.EAGAIN || error == -35); // The EAGAIN code means that the frame decoding has not been completed and more packets are needed.

error.ThrowIfError("An error ocurred while decoding the frame.");
}
Expand Down

0 comments on commit 5a00354

Please sign in to comment.