microsoft / microsoft/FFmpegInterop

Handling of whence in FileStreamSeek is incomplete

Open
#118 0 comments 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.