From patchwork Sun Oct 8 21:42:57 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Carl Eugen Hoyos X-Patchwork-Id: 5484 Delivered-To: ffmpegpatchwork@gmail.com Received: by 10.2.161.90 with SMTP id m26csp1973646jah; Sun, 8 Oct 2017 14:43:30 -0700 (PDT) X-Received: by 10.223.134.212 with SMTP id 20mr7050583wry.81.1507499010669; Sun, 08 Oct 2017 14:43:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1507499010; cv=none; d=google.com; s=arc-20160816; b=0vo2UEu8x//6WYOXEWTwtvPuPu2fICa61YEfuYI0Sh5o2VZWld4j/em9LauOB8bKUr vfDU3EBievCKnQspvabX3hh21VVillb3mAtXqw2IlURF3rSL/qIR21W8FPttyn/qG/PD pQmtvkBWuIujqVJZoVX7LlT++3KBijMWV9djbGIAq/Q2pGZoORb60SvAl8WIiWpRnWKg RoI3ewRO3+I80pxUV24zK6VIuGLw3NQ2ZgXYAsM+RqdLH5pATjznKLrr+BF8a+0rZObj 9NaKN1m3C1Iv1mbeXdnkhiUittHfV7jaONnsHuQtgFhhMzNDYjW234xgHLxe1xK5HCAq rOHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence:subject:to :message-id:date:from:mime-version:dkim-signature:delivered-to :arc-authentication-results; bh=AwW/NDUYMqo1DNt5aZ0Bcdf9j/VCFtGCso9FEdh/WrA=; b=YW13acNCCGSn05nBx/mo6Fqn001bsInKRIAFDd0RHmItfPz3/w9mZ6TpEEye/+wHdx UoDtlPhlfeKtrpIssA95rnFc8ngVYbLjLIf8QSbrUaNYRs5eRkpXJDQRIlQG5I3BIblH xbsMRDgIAgiYEfYl5Xq05WJXdQqMHeHvW5cl6YJtFtUFpyqwkXnkrO5vRjp0qcYqRSXQ qRn+ZgxemU7t9S9k4OCbcwH0Ww2WD6Outxt2f1pKovko9bdoQaXMboVP3IScg9wvgSeC 9lYurfJa6gFK/hc+s+jGdzdyLSBWrg2WqswWl73irgsdoJLuKtlTAvo0/MbmvxENbt1f iP5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=QzkNMO93; 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 d6si2879739wre.468.2017.10.08.14.43.29; Sun, 08 Oct 2017 14:43:30 -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=QzkNMO93; 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 6A34F68065E; Mon, 9 Oct 2017 00:43:24 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-it0-f44.google.com (mail-it0-f44.google.com [209.85.214.44]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 2B38E680631 for ; Mon, 9 Oct 2017 00:43:18 +0300 (EEST) Received: by mail-it0-f44.google.com with SMTP id f187so4944185itb.1 for ; Sun, 08 Oct 2017 14:43:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=9//SbtfmAPL55adF9qjnyIc247p56TgTOdXMR93zC1Q=; b=QzkNMO93bNgqfL5kmLZ5aV6wt8h3tQ3852E3hi+dR4o1GWl4WPBJKNN79ZGs+UZZSS tJus+wepv40aJlYKposXpn1w3rgmk4Sfk9at5v78aRtXnKFIR+R22mbW0Dwa78qe0edC hRsbLB/MqEDt1hiWHJLrsKZ3vtf/DZ/rAjZJOZogRgW0IrKiT5q7KADcihc+QboI0xix 9emzmwbPW62zvosNnTHw/XpLsn9EE+XE39LT/CX9i7WyXfZuPdHbDCQglSmU/nKcriPv RwKGkSdcYQVxXJI5iHVc4d7A4jZ67FF8HiE1mFn0rm4ohC3W/VpF5oA1v1YvxwvgLC8/ mCDA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=9//SbtfmAPL55adF9qjnyIc247p56TgTOdXMR93zC1Q=; b=qqUMKlxUccB8PXdr84E3/fC3i0Dc80K3q7TJvASGsOYDq12bVJXhuhq4QleG65NKGo BapJU72BL5M1h2ZLZ7kdOyrQ9DVxIBjDeyVzXAtnBPO0GG1hnUG7f9Oo9ZkVtqAy4UK7 327e0l/Ktxyh5bXN9mvtR0BwlyVZ6jtezbJ3+H0OyYtaCzzKHfaIXJ8eeM2feBp9q+cW auslzdO7x3m58sJAVb/w3XdPJVm9rhdO4R0Upa+NeDU0XoDu7k3AMZ+KOXHMnrfz4o/D wjcG75eMF9aRAlqOa2JKBZOHuRgnJtSQ6Q7ssGasXOxiX1UW7IJlseag/FBkchS0jdC/ w8gQ== X-Gm-Message-State: AMCzsaXjOLxZD1xkGlMCff4xUthtXxYJuaOabbVMKz4GAdd4NSfJUrOL vH/IrH2eM6/qNmYdBQieQDtyBELZtd0xbAhlV04= X-Google-Smtp-Source: AOwi7QDHfNPSjyW7CRyygxIxXFLWQBceUB8WHnMxFPaUvd1Ib+k8Ui1u5tf0//bj6YKyCRrZH5qdRpJlpj0c2Zk4fW4= X-Received: by 10.36.253.11 with SMTP id m11mr12425211ith.12.1507498998109; Sun, 08 Oct 2017 14:43:18 -0700 (PDT) MIME-Version: 1.0 Received: by 10.2.134.74 with HTTP; Sun, 8 Oct 2017 14:42:57 -0700 (PDT) From: Carl Eugen Hoyos Date: Sun, 8 Oct 2017 23:42:57 +0200 Message-ID: To: FFmpeg development discussions and patches Subject: [FFmpeg-devel] [PATCH]lavf/adp: Fix probe function on systems with signed char 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 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Hi! Attached patch fixes the adp probe function, it currently fires for repeated values. I will probably apply soon, Carl Eugen From 33d39f5199bacbbbafdb9885c72c3c6898dded81 Mon Sep 17 00:00:00 2001 From: Carl Eugen Hoyos Date: Sun, 8 Oct 2017 23:41:14 +0200 Subject: [PATCH] lavf/adp: Fix the probe function on systems with signed char. --- libavformat/adp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/adp.c b/libavformat/adp.c index 7355503..3914857 100644 --- a/libavformat/adp.c +++ b/libavformat/adp.c @@ -27,7 +27,7 @@ static int adp_probe(AVProbeData *p) { int i, changes = 0; - char last = 0; + uint8_t last = 0; if (p->buf_size < 32) return 0; -- 1.7.10.4