[FFmpeg-cvslog] avutil/threadmessage: fix error return in case of av_fifo_alloc failure
Aleksandr Slobodeniuk
git at videolan.org
Fri Jul 14 03:33:57 EEST 2017
ffmpeg | branch: master | Aleksandr Slobodeniuk <alenuke at yandex.ru> | Wed Jul 12 21:41:56 2017 +0300| [390e028c663bbfddc140bcff5acc978d443ea5c4] | committer: Michael Niedermayer
avutil/threadmessage: fix error return in case of av_fifo_alloc failure
Reviewed-by: Nicolas George <george at nsup.org>
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=390e028c663bbfddc140bcff5acc978d443ea5c4
---
libavutil/threadmessage.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavutil/threadmessage.c b/libavutil/threadmessage.c
index 7c5cd2463c..872e9392b1 100644
--- a/libavutil/threadmessage.c
+++ b/libavutil/threadmessage.c
@@ -69,7 +69,7 @@ int av_thread_message_queue_alloc(AVThreadMessageQueue **mq,
pthread_cond_destroy(&rmq->cond_recv);
pthread_mutex_destroy(&rmq->lock);
av_free(rmq);
- return AVERROR(ret);
+ return AVERROR(ENOMEM);
}
rmq->elsize = elsize;
*mq = rmq;
More information about the ffmpeg-cvslog
mailing list