Skip to content

Custom AVIOContext fails to open input file #255

@adamhewitt627

Description

@adamhewitt627

I'm submitting a bug report.

  • Do you want to request a feature or report a bug?
    This could be a bug with ffmpeg, but seems to be a failure with the managed/native callbacks. Our code worked under ffmpeg 4.3, and broke in 5.0. I checked again and it's still broken in ffmpeg6. I will work on a repro example, but wanted to get this filed.

  • What is the current behavior?

  1. Custom AVIOContext fails to open for reading a file.
  2. The Read callback executes once, but then an AccessViolationException is thrown.
  • *If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem:

  • What is the expected behavior?
    Reading a file with a custom IO context should work. (Interestingly, it does work for writing a file)

  • Please tell us about your environment:

  • version: ffmpeg6, Windows 11, .NET6.0 WPF application.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions