Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • P PyAV
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 37
    • Issues 37
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 26
    • Merge requests 26
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • PyAV
  • PyAV
  • Issues
  • #257
Closed
Open
Issue created Jul 17, 2017 by Administrator@rootContributor

Passing BytesIO object to av.open causes crash.

Created by: hhsprings

This code causes crash:

tmp = BytesIO()
# ... write bytes to tmp (for example wave format data) ...
container = av.open(tmp, "r")

We have to do seek(0) before calling open:

tmp = BytesIO()
# ... write bytes to tmp (for example wave format data) ...
tmp.seek(0)
container = av.open(tmp, "r")

Of course the fact that the result is not what we want without seek(0) is no problem, but crashing application is no good.

Assignee
Assign to
Time tracking