# HG changeset patch # User reimar # Date 1232120151 0 # Node ID 3d57729868a9fdbcee59e27dcfac4acb08b2920b # Parent 4b550415c87496f29555308fb2662916e089396e Return AVERROR(ENOMEM) instead of -1 when malloc fails in url_open_dyn_buf_internal diff -r 4b550415c874 -r 3d57729868a9 aviobuf.c --- a/aviobuf.c Fri Jan 16 15:34:37 2009 +0000 +++ b/aviobuf.c Fri Jan 16 15:35:51 2009 +0000 @@ -794,7 +794,7 @@ return -1; d = av_mallocz(sizeof(DynBuffer) + io_buffer_size); if (!d) - return -1; + return AVERROR(ENOMEM); *s = av_mallocz(sizeof(ByteIOContext)); if(!*s) { av_free(d);