Skip to content

Commit 647d5da

Browse files
committed
PyAV-ffmpeg 7.1.1-5
Deleting `test_writing_to_custom_io_dash` because it depends on libxml2, an insecure library.
1 parent ab4e548 commit 647d5da

File tree

3 files changed

+2
-38
lines changed

3 files changed

+2
-38
lines changed

scripts/build-deps

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,11 @@ echo ./configure
5757
--disable-doc \
5858
--disable-static \
5959
--disable-stripping \
60+
--disable-libxml2 \
6061
--enable-debug=3 \
6162
--enable-gpl \
6263
--enable-version3 \
6364
--enable-libx264 \
64-
--enable-libxml2 \
6565
--enable-shared \
6666
--enable-sse \
6767
--enable-avx \

scripts/ffmpeg-7.1.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"url": "https://github.com/PyAV-Org/pyav-ffmpeg/releases/download/7.1.1-4/ffmpeg-{platform}.tar.gz"
2+
"url": "https://github.com/PyAV-Org/pyav-ffmpeg/releases/download/7.1.1-5/ffmpeg-{platform}.tar.gz"
33
}

tests/test_python_io.py

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -237,42 +237,6 @@ def test_writing_to_buffer_broken_with_close(self) -> None:
237237
with pytest.raises(OSError):
238238
container.close()
239239

240-
@run_in_sandbox
241-
def test_writing_to_custom_io_dash(self) -> None:
242-
# Custom I/O that opens file and logs calls
243-
wrapped_custom_io = CustomIOLogger()
244-
245-
output_filename = "custom_io_output.mpd"
246-
247-
# Write a DASH package using the custom IO. Prefix the name with CUSTOM_IO_PROTOCOL to
248-
# avoid temporary file and renaming.
249-
with av.open(
250-
CUSTOM_IO_PROTOCOL + output_filename, "w", io_open=wrapped_custom_io
251-
) as container:
252-
write_rgb_rotate(container)
253-
254-
# Check that at least 3 files were opened using the custom IO:
255-
# "output_filename", init-stream0.m4s and chunk-stream-0x.m4s
256-
assert len(wrapped_custom_io._log) >= 3
257-
assert len(wrapped_custom_io._method_log) >= 3
258-
259-
# Check that all files were written to
260-
all_write = all(
261-
method_log._filter("write") for method_log in wrapped_custom_io._method_log
262-
)
263-
assert all_write
264-
265-
# Check that all files were closed
266-
all_closed = all(
267-
method_log._filter("close") for method_log in wrapped_custom_io._method_log
268-
)
269-
assert all_closed
270-
271-
# Check contents.
272-
# Note that the dash demuxer doesn't support custom I/O.
273-
with av.open(output_filename, "r") as container:
274-
assert_rgb_rotate(self, container, is_dash=True)
275-
276240
def test_writing_to_custom_io_image2(self) -> None:
277241
if not has_pillow:
278242
pytest.skip()

0 commit comments

Comments
 (0)