提交 0e7ceb24 编写于 作者: R Reimar Döffinger

Return AVERROR(ENOMEM) instead of -1 when malloc fails in url_open_dyn_buf_internal

Originally committed as revision 16636 to svn://svn.ffmpeg.org/ffmpeg/trunk
上级 aa805f94
......@@ -794,7 +794,7 @@ static int url_open_dyn_buf_internal(ByteIOContext **s, int max_packet_size)
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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册