Skip to content

Commit

Permalink
Add max_b_frames property to codec context
Browse files Browse the repository at this point in the history
Allows an application to control the maximum number of B frames,
irrespective of what other settings or preset is used.
  • Loading branch information
davidplowman committed Apr 12, 2023
1 parent 6982d81 commit 2921a95
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions av/video/codeccontext.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -162,3 +162,10 @@ cdef class VideoCodecContext(CodecContext):
property coded_height:
def __get__(self):
return self.ptr.coded_height

property max_b_frames:
def __get__(self):
return self.ptr.max_b_frames

def __set__(self, value):
self.ptr.max_b_frames = value

0 comments on commit 2921a95

Please sign in to comment.