radek-k / FFMediaToolkit

FFMediaToolkit is a cross-platform video decoder/encoder library for .NET that uses FFmpeg native libraries. It supports video frames extraction, reading stream metadata and creating videos from bitmaps in any format supported by FFmpeg.
MIT License
352 stars 56 forks source link

Return EOF when end of the stream has been reached #107

Closed hey-red closed 2 years ago

hey-red commented 2 years ago

This resolves issue when ReadPacket stuck at frame reading when container have multiple video streams. It's only reproduced for MediaFile.Open(Stream) with latest release.

A sample video, that contains two video streams: https://files.catbox.moe/702qmb.webm