File: 0002-python-av-compat.patch

package info (click to toggle)
pims 0.7%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 16,336 kB
  • sloc: python: 5,559; makefile: 149
file content (22 lines) | stat: -rw-r--r-- 751 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
From: Antonio Valentino <antonio.valentino@tiscali.it>
Date: Fri, 26 Dec 2025 20:40:22 +0000
Subject: python-av compat

Forwarded: https://github.com/soft-matter/pims/pull/461
---
 pims/display.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pims/display.py b/pims/display.py
index e5a9892..ed50e20 100644
--- a/pims/display.py
+++ b/pims/display.py
@@ -169,7 +169,7 @@ def export_pyav(sequence, filename, rate=30, bitrate=None,
     while True:
         try:
             packet = stream.encode()
-        except av.AVError:  # End of file raises AVError since after av 0.4
+        except av.error.FFmpegError:  # End of file raises AVError since after av 0.4
             break
         if packet is None:
             break