Skip to content

Commit

Permalink
Client width is not being used
Browse files Browse the repository at this point in the history
  • Loading branch information
thomaserlang committed Dec 16, 2023
1 parent 3e77b4b commit d3a5dc7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions seplis_play_server/transcoders/video.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ class Transcode_settings:
max_audio_channels: Optional[int] | constr(max_length=0) = None
max_width: Optional[int] | constr(max_length=0) = None
max_video_bitrate: Optional[int] | constr(max_length=0) = None
client_width: Optional[int] | constr(max_length=0) = None
supported_video_containers: Annotated[list[constr(min_length=1)], Query()] = Query(default=['mp4'])
client_can_switch_audio_track: bool = False

Expand Down Expand Up @@ -257,7 +256,7 @@ def set_video(self):
if codec == 'copy':
return

width = self.settings.max_width or self.settings.client_width or self.video_stream['width']
width = self.settings.max_width or self.video_stream['width']
if width > self.video_stream['width']:
width = self.video_stream['width']

Expand Down

0 comments on commit d3a5dc7

Please sign in to comment.