aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil
diff options
context:
space:
mode:
authorAleksandr Slobodeniuk <alenuke@yandex.ru>2017-07-12 21:41:56 +0300
committerMichael Niedermayer <michael@niedermayer.cc>2017-07-14 02:30:37 +0200
commit390e028c663bbfddc140bcff5acc978d443ea5c4 (patch)
treeefcea8f3bb3eef61931d40c155e626a3c52caecf /libavutil
parentdf806605f7b72584ee99497c41514585574b53b8 (diff)
downloadffmpeg-390e028c663bbfddc140bcff5acc978d443ea5c4.tar.gz
avutil/threadmessage: fix error return in case of av_fifo_alloc failure
Reviewed-by: Nicolas George <george@nsup.org> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavutil')
-rw-r--r--libavutil/threadmessage.c2
1 files changed, 1 insertions, 1 deletions
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;