scaling and resampling contexts: fix null checks (via @expenses)

This commit is contained in:
Erin Moon
2018-09-21 10:49:03 -05:00
parent 67b7f13305
commit dc6ace91ec
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -55,7 +55,7 @@ impl Context {
ptr::null_mut(),
);
if ptr.is_null() {
if !ptr.is_null() {
match swr_init(ptr) {
e if e < 0 => Err(Error::from(e)),
+1 -1
View File
@@ -56,7 +56,7 @@ impl Context {
ptr::null_mut(),
);
if ptr.is_null() {
if !ptr.is_null() {
Ok(Context {
ptr: ptr,