Skip to content

Commit

Permalink
remove setting of the seekable field
Browse files Browse the repository at this point in the history
remove setting of the seekable field, since it causes access violation errors, and unnecessary.

Check the comment from june 6, 2023: unosquare#642

Or:
Ruslan-B/FFmpeg.AutoGen#255

Currently I'm uusing my own package, but I'd liek to swicth your original version, but this issue block me.

Reproduce the issue: Just open any local video file with the following url:
customfile://C:\myfolder\myfile.mkv
It will use the FileInputStream which sets the seekable field. => access violation when trying to open the media.
  • Loading branch information
zgabi authored Jun 10, 2024
1 parent b9336b6 commit fe57642
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions Unosquare.FFME/Container/MediaContainer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -682,9 +682,6 @@ private void StreamInitialize()
CustomInputStreamContext = ffmpeg.avio_alloc_context(
inputBuffer, CustomInputStream.ReadBufferLength, 0, null, CustomInputStreamRead, null, CustomInputStreamSeek);

// Set the seekable flag based on the custom input stream implementation
CustomInputStreamContext->seekable = CustomInputStream.CanSeek ? ffmpeg.AVIO_SEEKABLE_NORMAL : 0;

// Assign the AVIOContext to the input context
inputContextPtr->pb = CustomInputStreamContext;
}
Expand Down

0 comments on commit fe57642

Please sign in to comment.