Skip to content
This repository was archived by the owner on Jan 19, 2025. It is now read-only.

Commit a5ee760

Browse files
committed
feed dtype to ascontiguousarray (fail-safe)
bump to v0.8.3
1 parent 2ae232e commit a5ee760

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) a
55

66
## [Unreleased]
77

8+
## [0.8.3] - 2023-03-19
9+
10+
### Changed
11+
12+
- Force
13+
814
## [0.8.2] - 2023-03-19
915

1016
### Changed

src/ffmpegio_plugin_numpy/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
hookimpl = HookimplMarker("ffmpegio")
1010

11-
__version__ = "0.8.2"
11+
__version__ = "0.8.3"
1212
# When updating version, make sure to update setup.cfg install_requires
1313
# ffmpegio-core version to match current ffmpeg-core version
1414

@@ -63,7 +63,7 @@ def video_bytes(obj: ArrayLike) -> memoryview:
6363
"""
6464

6565
try:
66-
return memoryview(np.ascontiguousarray(obj))
66+
return memoryview(np.ascontiguousarray(obj, obj.dtype))
6767
except:
6868
return None
6969

@@ -79,7 +79,7 @@ def audio_bytes(obj: ArrayLike) -> memoryview:
7979
"""
8080

8181
try:
82-
return memoryview(np.ascontiguousarray(obj))
82+
return memoryview(np.ascontiguousarray(obj, obj.dtype))
8383
except:
8484
return None
8585

0 commit comments

Comments
 (0)