From patchwork Tue Sep 12 19:16:43 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Ronald S. Bultje" X-Patchwork-Id: 5106 Delivered-To: ffmpegpatchwork@gmail.com Received: by 10.2.36.26 with SMTP id f26csp64790jaa; Tue, 12 Sep 2017 12:17:12 -0700 (PDT) X-Received: by 10.223.148.6 with SMTP id 6mr12732491wrq.15.1505243832165; Tue, 12 Sep 2017 12:17:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1505243832; cv=none; d=google.com; s=arc-20160816; b=vDE43nqBjYOzT9mqx0iN6YFh9TQltMdRL+mXMBEJXffXxKO9aQ1sB0P2BC2TW3uR4T fanhasbvC4UZH6RDcgNHHMZ8PLQIM/dJInNeFsdNnBbQnEaWHLMZBn1wFxRbkQNPnKJs IcKABSETC8scf9QlOzGJT1HQHGt3h6gZwS8TQECPBrj3aPEieI9OeemqXN2SzAf/UmnS dzODiaOxFtr8zPwybEswaa4UsK9wLq44n74wmkh4bGC1zN7XAYQHaifzS6IS//j/CjCi puuaqVjYLCbx8BGntKygGL6GSuNDFUmpqVpwcntBpg5odXayc68fy+vQEMqqNMaxrkei YZcQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:cc:reply-to :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:message-id:date:to:from:dkim-signature :delivered-to:arc-authentication-results; bh=qShzpuARBeGHEj2p6A3UEIc9bgBI95Ov43gUu+mgNhY=; b=El8B6kR1XLZ9KSlDewpwdPx9x6NZoZAo3sWY33Gm5NZhe063+R/RZcaVJouF1yARJX MRhNH+WW+1Bz5MzTLH8AfZnjT8uR3AriB7E14Abc1oLOSqhg7IB5hpwOoYeC77p6CREa hJ3wbkB/frI1J7LufoeTEPVUuX+dl/jK3yJyR5lR8TfjuvekGlOO1IyKb2AR82avF/da wWOf76p5BmwhR7mxcZEWM3K35cYQ7YDvu6yT7WG88NbrS9pqkP8fa1W0ZjbRgYAEvOKF 3ON8bfG18J7iCJb8eaQ52hRuMUHwyZTV/Lk0sxUaW+Eqk9ehdOSSnwqw1tcMfx+IxbbQ 5PIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=V/lhpYDM; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmail.com Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id b139si2946979wma.99.2017.09.12.12.16.55; Tue, 12 Sep 2017 12:17:12 -0700 (PDT) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=V/lhpYDM; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 97ADA689CF6; Tue, 12 Sep 2017 22:16:48 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-qk0-f171.google.com (mail-qk0-f171.google.com [209.85.220.171]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 23055689203 for ; Tue, 12 Sep 2017 22:16:42 +0300 (EEST) Received: by mail-qk0-f171.google.com with SMTP id b23so27301619qkg.1 for ; Tue, 12 Sep 2017 12:16:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=XdhlWZf+we7djFePusfaQPQ7GDmf132ZA1ZuQyuFeTM=; b=V/lhpYDMQlcxv+32ztw1w3entYIayvvneMVR1v7tfuYuNSrmuPM3LhiXlTD0odcCpT 0ShUvHKUzZQnwYWkUoN53i6i51ktpIi2zJOMFqOWP7QaYqYawpYZowjcXR/BKyRG2grA Mge6rG0HlSaPxkFGwKg0tywgBa4GYYGKPJj/zQpQNxz+1ABe3h7uWNW2LjHcHoE3fVg1 AXybXgQqXsFN5IvBKpXpTxXp756J2LKaNY5DNKg4IOBHV31tELg8W7b5pkR1brT9wBYc W0CBtKF3lP2JBh9+37jCQr6K3fPtgR9aTpv4wn2fgM0uFBlGlg1MoSXt4tlCEBrZRib4 JYhA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=XdhlWZf+we7djFePusfaQPQ7GDmf132ZA1ZuQyuFeTM=; b=rX/lEtWewEMSezSYl7Odml6Zga/NstNU5emJaLhpbPwkI6Z4C3vtp1B9HbVXKXqfwK BnoyNZk971dcj26gZhmWtYhvqba/8Gc3Pc5g4MARVy4lQu+oLzTB7sr2RwBjhtfZdX1p HSKQlmXLast6oGATa15IEVD4D0jMmk/sSQ9ylWG+rNDLpLIclNwCTrJhBpKGeyi3esqO Hzn3Rb+qxavfVOeheHN1WEAlMDrEdQwKAkv5jyRQwQ7j9VY3KU+vtlf1dOlJmF0nXZJx 4S03HzNdoN5xhOKxKUmxuEGSPBgiwvFNvqMmttdEpN/MijDrCVMgK15pt6Pi4pDVOnQK Q8Ew== X-Gm-Message-State: AHPjjUhrtg7A7v4CSWweKVTxL7i6im3kzAtIn8aNzjgLc40P+3+NFWhx mI/nXABB7MDUSOu8rfM= X-Google-Smtp-Source: AOwi7QCXhawxhfBLoUC1TiofV08GrfWwPnsnUKIshQpM7CFFZH48n4Kadj/Xji4jAJJGS8QpPtZbMA== X-Received: by 10.55.153.193 with SMTP id b184mr20554949qke.314.1505243806916; Tue, 12 Sep 2017 12:16:46 -0700 (PDT) Received: from localhost.localdomain ([65.206.95.146]) by smtp.gmail.com with ESMTPSA id f69sm8135792qke.27.2017.09.12.12.16.44 (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 12 Sep 2017 12:16:45 -0700 (PDT) From: "Ronald S. Bultje" To: ffmpeg-devel@ffmpeg.org Date: Tue, 12 Sep 2017 15:16:43 -0400 Message-Id: <1505243803-46371-1-git-send-email-rsbultje@gmail.com> X-Mailer: git-send-email 2.8.1 Subject: [FFmpeg-devel] [PATCH] vp9: fix explicit memory order for report_progress. X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Cc: "Ronald S. Bultje" MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" --- libavcodec/vp9.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/vp9.c b/libavcodec/vp9.c index 66ccb6c..6b5de19 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); }