Skip to content
GitLab
    • Explore Projects Groups Snippets
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
  • Merge requests
  • !694

Fix for #692: Re-initialize StreamContainer when nb_streams changes during demuxing

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Administrator requested to merge github/fork/zhaosheng-pan/hotfix/dynamic-nb-streams into main 4 years ago
  • Overview 3
  • Commits 2
  • Pipelines 0
  • Changes 1

Created by: brglng

Fix for files whose nb_streams changes during demuxing/decoding.

Loading
Loading

Activity


  • Administrator changed title from Fix for files whose nb_streams changes during demuxing{- #692 (closed)-} to Fix for {+#692 (closed): Re-initialize StreamContainer when+} nb_streams changes during demuxing 4 years ago

    changed title from Fix for files whose nb_streams changes during demuxing{- #692 (closed)-} to Fix for {+#692 (closed): Re-initialize StreamContainer when+} nb_streams changes during demuxing

  • Jeremy Lainé
    Jeremy Lainé @jlaine started a thread on commit b9475c1b 4 years ago
    av/container/input.pyx
    111 111 # (and others).
    112 112 id(kwargs)
    113 113
    114
    • Jeremy Lainé
      Jeremy Lainé @jlaine · 4 years ago
      Contributor

      Please remove this unrelated change

  • Jeremy Lainé
    Jeremy Lainé @jlaine started a thread on commit b9475c1b 4 years ago
    Last updated by Administrator 4 years ago
    av/container/input.pyx
    143 136 except EOFError:
    144 137 break
    145 138
    139 if self.ptr.nb_streams != len(self.streams):
    140 self.streams = StreamContainer()
    141 for i in range(self.ptr.nb_streams):
    142 self.streams.add_stream(wrap_stream(self, self.ptr.streams[i]))
    143
    144 for i in range(self.ptr.nb_streams):
    145 include_stream[i] = False
    • Jeremy Lainé
      Jeremy Lainé @jlaine · 4 years ago
      Contributor

      How do we know include_stream is the correct size, it only seems to be allocated once?

    • Administrator
      Administrator @root · 4 years ago
      Author Contributor

      Created by: brglng

      I should re-allocate include_stream. Thanks.

  • Jeremy Lainé added changes requested label 3 years ago

    added changes requested label

  • Administrator closed 3 years ago

    closed

Please register or sign in to reply
0 Assignees
None
Assign to
0 Reviewers
None
Request review from
Labels
0
None
0
None
    Assign labels
  • Manage project labels

Milestone
No milestone
None
None
Time tracking
No estimate or time spent
Lock merge request
Unlocked
0
0 participants
Reference: vinta/awesome-python!168
Source branch: github/fork/zhaosheng-pan/hotfix/dynamic-nb-streams

Menu

Explore Projects Groups Snippets