Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFearThe1337 <git@fearthe1337.com>2016-02-13 18:55:02 +0300
committerMichael Niedermayer <michael@niedermayer.cc>2016-02-14 00:57:26 +0300
commitc33ffc7b21b9531a971b5da1edcae0b308fe88aa (patch)
treee88906d872ae6b80b41c140f4c6cf09c5b66fbd7 /libavdevice
parent4099e4a77d2d49e2308415d92766ad1511f62f9a (diff)
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')
-rw-r--r--libavdevice/dshow.c2
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)