Segmentation violation fixed.

This commit is contained in:
zergon321
2021-09-11 18:34:54 +00:00
parent 80d4170b83
commit 3aca0501b1

View File

@@ -45,8 +45,8 @@ func (video *VideoStream) Height() int {
// decoding with default parameters.
func (video *VideoStream) Open() error {
return video.OpenDecode(
int(video.codecCtx.width),
int(video.codecCtx.height),
int(video.codecParams.width),
int(video.codecParams.height),
InterpolationBicubic)
}