You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
vp9: fix explicit memory order for report_progress.
This commit is contained in:
@@ -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) {
|
static void vp9_report_tile_progress(VP9Context *s, int field, int n) {
|
||||||
pthread_mutex_lock(&s->progress_mutex);
|
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_cond_signal(&s->progress_cond);
|
||||||
pthread_mutex_unlock(&s->progress_mutex);
|
pthread_mutex_unlock(&s->progress_mutex);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user