From d24f9a0aa0598492b7a9fd619c81c6db1a2a532c Mon Sep 17 00:00:00 2001 From: Lijun Yu Date: Sun, 18 Oct 2020 21:06:31 -0400 Subject: [PATCH] v1.3.5 --- avi_r/reader.py | 4 ++-- docs/version.md | 4 ++++ setup.py | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/avi_r/reader.py b/avi_r/reader.py index f4df2bc..1fa8aac 100644 --- a/avi_r/reader.py +++ b/avi_r/reader.py @@ -60,8 +60,8 @@ def __init__(self, video_path: str, parent_dir: str = '', self._init() self.num_frames = self._stream.duration self.frame_rate = float(self._stream.average_rate) - self.height = self._stream.codec_context.format.height - self.width = self._stream.codec_context.format.width + self.height = self._stream.codec_context.height + self.width = self._stream.codec_context.width # Deprecated attributes self.length = self.num_frames diff --git a/docs/version.md b/docs/version.md index 1b9c3be..66947cf 100644 --- a/docs/version.md +++ b/docs/version.md @@ -1,5 +1,9 @@ # Version History +## AVI-R v1.3.5 + +* More robust extraction of frame size. + ## AVI-R v1.3.4 * Ignore errors in metadata decoding. diff --git a/setup.py b/setup.py index 18ecdc2..343064f 100644 --- a/setup.py +++ b/setup.py @@ -8,7 +8,7 @@ setuptools.setup( name='avi-r', - version='1.3.4', + version='1.3.5', author='Lijun Yu', author_email='lijun@lj-y.com', description='A robust reader for avi videos.',