From 66d49636c78f86f1d59430da08a992fe53d8e3c3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Fran=C3=A7ois=20Revol?= <revol@free.fr>
Date: Sun, 28 Jan 2007 09:07:49 +0000
Subject: an alloc func failing should give ENOMEM anyway.

Originally committed as revision 7737 to svn://svn.ffmpeg.org/ffmpeg/trunk
---
 libavformat/framehook.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'libavformat')

diff --git a/libavformat/framehook.c b/libavformat/framehook.c
index 03bbc95f6d..e9a11af9ae 100644
--- a/libavformat/framehook.c
+++ b/libavformat/framehook.c
@@ -57,7 +57,7 @@ int frame_hook_add(int argc, char *argv[])
 
     fhe = av_mallocz(sizeof(*fhe));
     if (!fhe) {
-        return errno;
+        return -ENOMEM;
     }
 
     fhe->Configure = dlsym(loaded, "Configure");
-- 
cgit v1.2.3