From patchwork Thu Mar 15 11:00:04 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: sanilraut X-Patchwork-Id: 8000 Delivered-To: ffmpegpatchwork@gmail.com Received: by 10.2.1.70 with SMTP id c67csp1166918jad; Thu, 15 Mar 2018 04:06:30 -0700 (PDT) X-Google-Smtp-Source: AG47ELuDSjbqyNak4SGZog+Z5MLahOOl5kjhu5AOZM63W8e87PZVqlsLyh6m6TX/OKixQ3z1sqE5 X-Received: by 10.223.178.228 with SMTP id g91mr6801871wrd.157.1521111990365; Thu, 15 Mar 2018 04:06:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521111990; cv=none; d=google.com; s=arc-20160816; b=A6GKhj7hvhN+RMWhLPsDv3lHLcX2lrUeQUpq+dM+UnJqtiJzvMJWTuOCc3iHYEYdA5 Yf2Cy/gKDnvwrW3aXXV00UUYjPdbJF4U2Pxar+P7bE1+tiBN9xzJHGr8eQMQ53GMem5+ //B1HydG/KTNPBjZRDValg3F4/Z0jK4+pfD6bUqE5kUAFBwoERFbWR+XWBsRsbHMVoGN arpTN5/rS2/E0nZb4iHiTRN41WTzSQiNyfU5JeMkHXBPB4RgtDyUthgkJebp6KwXqJ25 mwdkDXF6wgJVPvqeDMumkcADygCi09iD9R0kVdntTTzQmovzKDG6ZP492V+RMN/VbH4r yLKw== 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=FFrVC8HGhpT7yRfamnG+nKO1LR3NiD3jphqHLBweYmQ=; b=V1ABtYoKume8qBfPjyrNbYQXn5ZcB2EIqw27U9Ic6AJGeOA+0fJSeJIeyMJyoSkNIA ObwShUp0DLltCg4Y5WF/Tf9rrUktDPWOsklj01ctVwEN138USz89eX8pS+hEd3ZPxCq+ 4d4R4r5B9RMhrabpSdw4YMJbPtZuJ2FivX1AZIJEds+8D3UjbDbj2dqqjsmpcC9XUj1Y bXDEQTzYbbBj1mZcHLQYvc8LLD7v9KcL9GO+sePEc9X11kOkp2wYfrOApt4os9TdPTrE ZOR1qyy6jELWp7IteLHje7nrbu8Qg8xAZw3CO8GE2McdUOKYs+fkO+LR1kIuPGpO3jgw k+tw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=QWWjWpSs; 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=QUARANTINE 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 c76si1451299wmh.209.2018.03.15.04.06.29; Thu, 15 Mar 2018 04:06: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=QWWjWpSs; 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=QUARANTINE 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 B63D968A036; Thu, 15 Mar 2018 13:06:16 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-io0-f172.google.com (mail-io0-f172.google.com [209.85.223.172]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 041C36898CA for ; Thu, 15 Mar 2018 13:06:10 +0200 (EET) Received: by mail-io0-f172.google.com with SMTP id v6so8068253iog.7 for ; Thu, 15 Mar 2018 04:06:23 -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=lTOgPgElnKV0qgFHAndwr02Ysy/0wJZYC7P9NH+5/pQ=; b=QWWjWpSs/qJlyZFs/cueKIo4Gpt7hi7hrqZ/LnR3XLE+i+H25LaVDiF57UHSkpj6lg 3FJgqRQh35km+ke0gwXyAZDFm3ufHcnCjASBvmuG24o9DzPDk5hpDkmMRVueIcy2w3wz zH5tlmew8AEOPUAscFYFIXHeJvdQloNzNxTDi9vaVyETLby1sJ0xi0iPIVeq5xIWRkbr jtBLHLrxIG7p8LsFzT8mb9vbhgjCuUGOsec+gp9aK6UUmbG/BkmxM3QUN/rOnFbJIyR8 3RzXNFPbQmqqYbjhfuCbaWw/Ab8gmC3y9sSodX9tJnRC45gDxTTe5o41fkXvY861TejY 5YfQ== 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=lTOgPgElnKV0qgFHAndwr02Ysy/0wJZYC7P9NH+5/pQ=; b=sx/KAry1WaMS2/xj1i61iC11Bx+++2ETAX+V/vhCDkzSCBjw5eDexxN/CbBz4neJ64 bWFZFqNV9LvY6Q9rLvmHnXUQmDj9PsnGctNQ7093r770MiR35/t7dlYKZhH3pM+vKgzW sh/hXbUH0KBE9LC6YaXl9a4THd6s0xaQCt/pHu5984Z+7mL+eAYGzmDcLohc3F7nHQpC 6J6BL+aEllH0VBCo9JaSX4yVQAa5XYtzFDp1ZcEPdzhEY9GEtWiXFWdmgeLq4NESCGxC s6bTslJobLcEMQ9MOGARx6bv9jvGsqWOdwzslp3zJLB/QGgW5ZpP8BK90ucrJMkBEht1 P9LQ== X-Gm-Message-State: AElRT7H/mzlV0owjf0lTl2KHTveusl2sjyO9B23qe/x08XVc/n9xi2ob dTmtfOtJZI7wkjtcB2q2xdy6Cw== X-Received: by 10.107.223.71 with SMTP id d7mr4482795iop.95.1521111663493; Thu, 15 Mar 2018 04:01:03 -0700 (PDT) Received: from localhost.localdomain ([219.91.152.79]) by smtp.gmail.com with ESMTPSA id 65sm3336883ioz.84.2018.03.15.04.01.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 15 Mar 2018 04:01:02 -0700 (PDT) From: sanilraut To: ffmpeg-devel@ffmpeg.org Date: Thu, 15 Mar 2018 04:00:04 -0700 Message-Id: <1521111604-10202-1-git-send-email-raut.sanil@gmail.com> X-Mailer: git-send-email 2.7.4 Subject: [FFmpeg-devel] [PATCH] Correcting spelling mistakes 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: sanilraut MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Hi, I found a few spelling mistakes in variable names. Following is the patch. --- libavformat/dashdec.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/libavformat/dashdec.c b/libavformat/dashdec.c index 2b396a0..7b79b93 100644 --- a/libavformat/dashdec.c +++ b/libavformat/dashdec.c @@ -1106,8 +1106,8 @@ static int parse_manifest(AVFormatContext *s, const char *url, AVIOContext *in) xmlNodePtr adaptionset_node = NULL; xmlAttrPtr attr = NULL; char *val = NULL; - uint32_t perdiod_duration_sec = 0; - uint32_t perdiod_start_sec = 0; + uint32_t period_duration_sec = 0; + uint32_t period_start_sec = 0; if (!in) { close_in = 1; @@ -1202,23 +1202,23 @@ static int parse_manifest(AVFormatContext *s, const char *url, AVIOContext *in) node = xmlFirstElementChild(node); while (node) { if (!av_strcasecmp(node->name, (const char *)"Period")) { - perdiod_duration_sec = 0; - perdiod_start_sec = 0; + period_duration_sec = 0; + period_start_sec = 0; attr = node->properties; while (attr) { val = xmlGetProp(node, attr->name); if (!av_strcasecmp(attr->name, (const char *)"duration")) { - perdiod_duration_sec = get_duration_insec(s, (const char *)val); + period_duration_sec = get_duration_insec(s, (const char *)val); } else if (!av_strcasecmp(attr->name, (const char *)"start")) { - perdiod_start_sec = get_duration_insec(s, (const char *)val); + period_start_sec = get_duration_insec(s, (const char *)val); } attr = attr->next; xmlFree(val); } - if ((perdiod_duration_sec) >= (c->period_duration)) { + if ((period_duration_sec) >= (c->period_duration)) { period_node = node; - c->period_duration = perdiod_duration_sec; - c->period_start = perdiod_start_sec; + c->period_duration = period_duration_sec; + c->period_start = period_start_sec; if (c->period_start > 0) c->media_presentation_duration = c->period_duration; }