diff options
author | Ronald S. Bultje <rsbultje@gmail.com> | 2017-09-12 15:02:20 -0400 |
---|---|---|
committer | Ronald S. Bultje <rsbultje@gmail.com> | 2017-09-12 15:26:05 -0400 |
commit | 1db03e952b4ee998f2a19c037f60d17dc90e8f6c (patch) | |
tree | b5d3e20d554b9a7755dafbeebdbf3111e2924159 /libavcodec/vp9.c | |
parent | 04b9010f7f546dbe82e301fcb7fd3ea157d49155 (diff) | |
download | ffmpeg-1db03e952b4ee998f2a19c037f60d17dc90e8f6c.tar.gz |
vp9: fix explicit memory order for report_progress.
Diffstat (limited to 'libavcodec/vp9.c')
-rw-r--r-- | libavcodec/vp9.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/vp9.c b/libavcodec/vp9.c index 66ccb6c49c..6b5de19266 100644 --- a/libavcodec/vp9.c +++ b/libavcodec/vp9.c @@ -73,7 +73,7 @@ static int vp9_alloc_entries(AVCodecContext *avctx, int n) { static void vp9_report_tile_progress(VP9Context *s, int field, int n) { pthread_mutex_lock(&s->progress_mutex); - atomic_fetch_add_explicit(&s->entries[field], n, memory_order_relaxed); + atomic_fetch_add_explicit(&s->entries[field], n, memory_order_release); pthread_cond_signal(&s->progress_cond); pthread_mutex_unlock(&s->progress_mutex); } |