summaryrefslogtreecommitdiff
path: root/libavcodec/pthread_slice.c
diff options
context:
space:
mode:
authorClément Bœsch <u@pkh.me>2017-03-29 12:20:32 +0200
committerClément Bœsch <u@pkh.me>2017-03-29 14:49:29 +0200
commiteaa67bb9c0595d2e2e7b555c38e864f5d6f851a7 (patch)
tree5c9f33838aeadfd644e727a43c42a8891e183a30 /libavcodec/pthread_slice.c
parent549045254c4614d5d61b5c36e340171a6914d57c (diff)
downloadffmpeg-eaa67bb9c0595d2e2e7b555c38e864f5d6f851a7.tar.gz
lavc/pthread_slice: remove pointless condition
Diffstat (limited to 'libavcodec/pthread_slice.c')
-rw-r--r--libavcodec/pthread_slice.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/libavcodec/pthread_slice.c b/libavcodec/pthread_slice.c
index 96a7643f6a..60f5b78891 100644
--- a/libavcodec/pthread_slice.c
+++ b/libavcodec/pthread_slice.c
@@ -156,11 +156,7 @@ static int thread_execute(AVCodecContext *avctx, action_func* func, void *arg, i
c->job_size = job_size;
c->args = arg;
c->func = func;
- if (ret) {
- c->rets = ret;
- } else {
- c->rets = NULL;
- }
+ c->rets = ret;
c->current_execute++;
pthread_cond_broadcast(&c->current_job_cond);