From patchwork Fri Sep 30 16:34:11 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthieu Bouron X-Patchwork-Id: 792 Delivered-To: ffmpegpatchwork@gmail.com Received: by 10.103.140.66 with SMTP id o63csp338176vsd; Fri, 30 Sep 2016 09:47:34 -0700 (PDT) X-Received: by 10.28.50.199 with SMTP id y190mr4931098wmy.61.1475254054336; Fri, 30 Sep 2016 09:47:34 -0700 (PDT) Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id r12si21446533wjw.290.2016.09.30.09.47.31; Fri, 30 Sep 2016 09:47:34 -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 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 5F4E6689F84; Fri, 30 Sep 2016 19:47:16 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-wm0-f65.google.com (mail-wm0-f65.google.com [74.125.82.65]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 652EE689E56 for ; Fri, 30 Sep 2016 19:47:10 +0300 (EEST) Received: by mail-wm0-f65.google.com with SMTP id b184so4241512wma.3 for ; Fri, 30 Sep 2016 09:47:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=pLFI0qJJPtQJ+VMG1p0ZoNnRTTn30d9v2lv/t8OzEtc=; b=wuD91owmsgaigA4yCh4M0603AEmwN0Mgu88ZlplVJy9qc8+rdW36tn8xrXh44ZGxcV wE8stnB/s+A/vkkGY35yNccVtSjf1IKtNyNKwlwVUxPyqms3c7ZOBxZKKxwPvXCsdGjR yvLtNfdU2jDveKvZLO5wmVEkd1dL+31dSFa0WiDTdA1WfFE5luw2sGyjxWWB44JNcqAl +L1rodK/RXWIToPUZGH4RanuwQFjAmDs/lvsR/Jp0QrCFoAxdJwqAnybzIiVwccENPfL FurYC46v3WKpLpE7BDUg+3eHdMBu2yguSJCxwsnvnaCV1lr9bZaeyVio5GFjkbDV8i7L lawg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=pLFI0qJJPtQJ+VMG1p0ZoNnRTTn30d9v2lv/t8OzEtc=; b=OpgXKEZ8DuJxTwqzHy6fA4Il9Bq6TLr9OE04lyud9MR2ENHq8YMRKNzf3q/5tU+96F ivjgAIdZvwniVgAwUOa86Ds7bcynAgV3V8iKrG4Ki1r5t18/MOcsh1yPdMQPhrDMuj2Q rGlB7uuojCv0RDJMMK9H/TX40aC1bxY6RZlpPKd8BAIeg6CxeMnEi3u9WUPZJJM0lm0E 8Yy9XpKgWrGAfxSOcwK+QqB+0JbgRliOXuGNDw5Jng7HAGEH2CJ8mN241QfPWIkB6CyY wXFnMszJOi25ncqXInDTsC39ZS2hB0oWIKWDBDfvjmokDBj9pOoLnkc6502bD4b4AcPt 77wQ== X-Gm-Message-State: AA6/9RlhCAHaWARL3tubwGs2Ab/waUqSG35AfrDqZcb/z/IcSbf3VTqqEIBLXULJQTy9Ig== X-Received: by 10.28.149.77 with SMTP id x74mr5137652wmd.95.1475253260600; Fri, 30 Sep 2016 09:34:20 -0700 (PDT) Received: from c3po.gopro.lcl (LPuteaux-656-1-74-135.w80-12.abo.wanadoo.fr. [80.12.80.135]) by smtp.gmail.com with ESMTPSA id l6sm4964417wmg.11.2016.09.30.09.34.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 30 Sep 2016 09:34:18 -0700 (PDT) From: Matthieu Bouron To: ffmpeg-devel@ffmpeg.org Date: Fri, 30 Sep 2016 18:34:11 +0200 Message-Id: <20160930163411.6743-1-matthieu.bouron@gmail.com> X-Mailer: git-send-email 2.10.0 Subject: [FFmpeg-devel] [PATCH] lavc/mediacodecdec_h2645: fix nalu data_size type 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" From: Matthieu Bouron --- libavcodec/mediacodecdec_h2645.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/mediacodecdec_h2645.c b/libavcodec/mediacodecdec_h2645.c index 122be88..9f8110c 100644 --- a/libavcodec/mediacodecdec_h2645.c +++ b/libavcodec/mediacodecdec_h2645.c @@ -154,7 +154,7 @@ static int h264_set_extradata(AVCodecContext *avctx, FFAMediaFormat *format) if (pps && sps) { uint8_t *data = NULL; - size_t data_size = 0; + int data_size = 0; if ((ret = h2645_ps_to_nalu(sps->data, sps->data_size, &data, &data_size)) < 0) { goto done;