From patchwork Sun May 21 16:17:27 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthieu Bouron X-Patchwork-Id: 3709 Delivered-To: ffmpegpatchwork@gmail.com Received: by 10.103.10.2 with SMTP id 2csp1086680vsk; Sun, 21 May 2017 09:17:50 -0700 (PDT) X-Received: by 10.223.171.208 with SMTP id s74mr9345253wrc.39.1495383470729; Sun, 21 May 2017 09:17:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1495383470; cv=none; d=google.com; s=arc-20160816; b=rcZ/n14YOcXK6+YidsaTTaPDMyfd4G+Ag4d+xT0UbJckuguGec2qpQL5fM/6nSoMwX iajvcpMMdRi9q0K9PjEYg+d+i8t8pSmzjCGRzyjr74v1x1lyqFO9tRJOdvRLHpSOPB9q wB8LWhta3LW5KXRrc77yGOpWvyZSO9ig/jsVgkEKfsbtHrNvDEK9NIs7gPdzT6ZwXGwn bcsoyOp73nCpbQ2O1bEPqWzjGQihJtVICHg/f8Ch2sRO8dvT4KWDjnA3MxwaVBvKS7n+ AoY6WP1S00+02E0IeOsvtJQxoo/3jQRVhnTlDUj7oo8Kpyj+fiaZfid8ti40KgRfpSM9 5h8g== 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=mBPBQFkTiKjLAnMZK5xwZKsCrwXJi+5m/4CI/xI+no0=; b=YUEo8eXZvCb6PGSSFb1XAOYYbLuy0sKYFkfWKqtHvge0RYriRjFOvMIdS8S36VGMgc 3rLpspWO/i2WlfqtuhY0KI/lRVW/GNIJhg1oZNdb96zrxLtmX2ZvoEm7g9nBRkOBtLu9 s1GKr+9SvyYDgXJp82MfWX7RQoEJsddxUw1kI/vtQBEXlnAoKewDk4Z28zGysbJPTFih DJnrIZLHZgvUi07XDILoUXHwam53Yh9BuH6Z6nGjf0KrFqLeWO9Dq9zHD++xdT0IyY3+ 4FhoZKki5OTl0PQqgdjDGuAIn+n43ySdqE0PZYqQZQZucmuzTjlGx3GdDaD4y2NQltVn qstA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com; 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 4si10089675wrp.270.2017.05.21.09.17.50; Sun, 21 May 2017 09:17:50 -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; 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 A615D68995D; Sun, 21 May 2017 19:17:46 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-wm0-f48.google.com (mail-wm0-f48.google.com [74.125.82.48]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 1431F688399 for ; Sun, 21 May 2017 19:17:40 +0300 (EEST) Received: by mail-wm0-f48.google.com with SMTP id e127so8782864wmg.1 for ; Sun, 21 May 2017 09:17:41 -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=HWfBiuAMQMnHUGIoq0vsvOBiDSkgol6yfUwMpGWOHZU=; b=PXUJqpbysh5rLjttV4+T0H1kMXSBB8Lc1bjgUPPOtayu/L2XB/umDtNMpR/0PmBSLv nPwAm2JNlLAYxCZJCfcyTJvH8zHV70kvg46+tXShucGpJe6YoFKyTl5sblmEcD290ZQ0 vq107z0C2QIhzYmDEWwHv0+bIquCrP7Jf4kVR+VdgmmzvhwBes3PiSq6PTngq6abGyZd FwkNFHnfMu36eh9r5bfbGpW0i7MHEfdK0RZgNVOHW8tqGM7Cf1yoI6tZFMIZlH7DZS44 YopTiDR5hGbZ2vmcfac5twScnrHNOyz0FVs+QRM5OVvuSAKraZdrhu8FLch04fZaMp3g sq8A== 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=HWfBiuAMQMnHUGIoq0vsvOBiDSkgol6yfUwMpGWOHZU=; b=SpQz5c6//aptDLsipyYJCk3h4tUq1DMAWoHaqegFceECKAZgqJqJHuaeS98ieQ4Jj6 w0MGyYUUV1/FP6S9GYhld8O5IMTJBP3mylJTU+Rvrg2kxOe9tFcUv564TSzmD6JllD+s bZTYFX5ZqBd+6YT/s+ad5qMtTp8EDxricdSP89SBHwWsISLsFt4ZKc4V+PF+Y1IglbTR xckmN6CfLuX0kaawoMKMDM8ZiWLxPpXObnHQ0n+JI7PHUo4wyD7FeNKM/rNLsYbOy+tK ZRwRT1t29iDcfHwTZ5L9gZjrajGw+xUO/7xuabo/qLu1wl4+DZjvteYFFmhg5kH8O7Sz ox6g== X-Gm-Message-State: AODbwcDgM7F8LdwqBttzPxDpz30QUExm1q6FkII1Q7q9u7p6vHcsJ5kr oda8a7mIhBfFKw== X-Received: by 10.28.22.71 with SMTP id 68mr6200525wmw.67.1495383460978; Sun, 21 May 2017 09:17:40 -0700 (PDT) Received: from localhost.localdomain (AMontsouris-653-1-6-238.w86-212.abo.wanadoo.fr. [86.212.85.238]) by smtp.gmail.com with ESMTPSA id 1sm14783357wrw.32.2017.05.21.09.17.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 21 May 2017 09:17:40 -0700 (PDT) From: Matthieu Bouron To: ffmpeg-devel@ffmpeg.org Date: Sun, 21 May 2017 18:17:27 +0200 Message-Id: <20170521161728.31197-1-matthieu.bouron@gmail.com> X-Mailer: git-send-email 2.12.0 Subject: [FFmpeg-devel] [PATCH 1/2] lavc/mediacodec_wrapper: do not declare JNIAMedia{Codec, Format}Fields on the stack 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: Matthieu Bouron MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" --- libavcodec/mediacodec_wrapper.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavcodec/mediacodec_wrapper.c b/libavcodec/mediacodec_wrapper.c index 5e1beed43a..0f573bfc7a 100644 --- a/libavcodec/mediacodec_wrapper.c +++ b/libavcodec/mediacodec_wrapper.c @@ -125,7 +125,7 @@ struct JNIAMediaFormatFields { jmethodID to_string_id; -} JNIAMediaFormatFields; +}; static const struct FFJniField jni_amediaformat_mapping[] = { { "android/media/MediaFormat", NULL, NULL, FF_JNI_CLASS, offsetof(struct JNIAMediaFormatFields, mediaformat_class), 1 }, @@ -210,7 +210,7 @@ struct JNIAMediaCodecFields { jfieldID presentation_time_us_id; jfieldID size_id; -} JNIAMediaCodecFields; +}; static const struct FFJniField jni_amediacodec_mapping[] = { { "android/media/MediaCodec", NULL, NULL, FF_JNI_CLASS, offsetof(struct JNIAMediaCodecFields, mediacodec_class), 1 },