diff options
author | FearThe1337 <git@fearthe1337.com> | 2016-02-13 16:55:02 +0100 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2016-02-13 22:57:26 +0100 |
commit | c33ffc7b21b9531a971b5da1edcae0b308fe88aa (patch) | |
tree | e88906d872ae6b80b41c140f4c6cf09c5b66fbd7 /libavdevice/dshow.c | |
parent | 4099e4a77d2d49e2308415d92766ad1511f62f9a (diff) | |
download | ffmpeg-c33ffc7b21b9531a971b5da1edcae0b308fe88aa.tar.gz |
libavdevice/dshow.c: Correct CoGetMalloc check
Current if statement would always be false due to assigning the value of
S_OK which equals 0.
Signed-off-by: FearThe1337 <git@fearthe1337.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavdevice/dshow.c')
-rw-r--r-- | libavdevice/dshow.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavdevice/dshow.c b/libavdevice/dshow.c index b280bc314d..f56c165539 100644 --- a/libavdevice/dshow.c +++ b/libavdevice/dshow.c @@ -240,7 +240,7 @@ dshow_cycle_devices(AVFormatContext *avctx, ICreateDevEnum *devenum, int i; r = CoGetMalloc(1, &co_malloc); - if (r = S_OK) + if (r != S_OK) goto fail1; r = CreateBindCtx(0, &bind_ctx); if (r != S_OK) |