"src/array/cuda/array_cumsum.hip" did not exist on "60b1c992416a4ef7959750eee7ca6d946d4a2304"
Unverified Commit d427f365 authored by Joao Gomes's avatar Joao Gomes Committed by GitHub
Browse files

fix bug in output format for pyav (#6672)

* fix bug in output format for pyav

* add read from memory with constructor overload

* Revert "add read from memory with constructor overload"

This reverts commit 14cbbab239165be05096fd6cbb88cb0448502436.

* run ufmt
parent b482d896
...@@ -273,15 +273,17 @@ def read_video( ...@@ -273,15 +273,17 @@ def read_video(
raise RuntimeError(f"File not found: {filename}") raise RuntimeError(f"File not found: {filename}")
if get_video_backend() != "pyav": if get_video_backend() != "pyav":
return _video_opt._read_video(filename, start_pts, end_pts, pts_unit) vframes, aframes, info = _video_opt._read_video(filename, start_pts, end_pts, pts_unit)
else:
_check_av_available() _check_av_available()
if end_pts is None: if end_pts is None:
end_pts = float("inf") end_pts = float("inf")
if end_pts < start_pts: if end_pts < start_pts:
raise ValueError(f"end_pts should be larger than start_pts, got start_pts={start_pts} and end_pts={end_pts}") raise ValueError(
f"end_pts should be larger than start_pts, got start_pts={start_pts} and end_pts={end_pts}"
)
info = {} info = {}
video_frames = [] video_frames = []
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment