changeset 1742:da3d430bfe71 libavformat

an alloc func failing should give ENOMEM anyway.
author mmu_man
date Sun, 28 Jan 2007 09:07:49 +0000
parents e9c7714b1c34
children 75909fc5b5a9
files framehook.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/framehook.c	Sun Jan 28 02:38:02 2007 +0000
+++ b/framehook.c	Sun Jan 28 09:07:49 2007 +0000
@@ -57,7 +57,7 @@
 
     fhe = av_mallocz(sizeof(*fhe));
     if (!fhe) {
-        return errno;
+        return -ENOMEM;
     }
 
     fhe->Configure = dlsym(loaded, "Configure");