microsoft / microsoft/FFmpegInterop
Handling of whence in FileStreamSeek is incomplete
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 1.4k
- Forks
- 319
- PR merge metrics
- No merged PRs in 30d
Description
The handling of the whence parameter in the FileStreamSeek is incomplete. IStream.Seek supports values from STREAM_SEEK (https://msdn.microsoft.com/en-us/library/windows/desktop/aa380359(v=vs.85).aspx), while ffmpeg can also pas AVSEEK_SIZE (0x10000) to request the size of the stream without seeking.
Since IStream doesn't expose size I applied a workaround by passing a struct with both IStream and size from the IRandomAccessStream, not sure if that's an acceptable fix.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating FileStreamSeek and reading how it maps the whence parameter to IStream.Seek. Compare the supported STREAM_SEEK values with FFmpeg's AVSEEK_SIZE request, then inspect the IRandomAccessStream and IStream size handling described in the issue. Done means both seek semantics and stream-size requests are handled consistently, with the chosen size-passing approach validated.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- audio-video-rtc, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100