From patchwork Thu Sep 14 13:44:41 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tobias Rapp X-Patchwork-Id: 5138 Delivered-To: ffmpegpatchwork@gmail.com Received: by 10.2.36.26 with SMTP id f26csp717776jaa; Thu, 14 Sep 2017 06:45:03 -0700 (PDT) X-Google-Smtp-Source: ADKCNb4E5S/PqQC67HznEqib4EXTT4BVi+FfKXeM7QAOVyobIHWqsjIQ1pGiG8qfs6+phAPH+sO/ X-Received: by 10.223.160.46 with SMTP id k43mr20482958wrk.113.1505396703672; Thu, 14 Sep 2017 06:45:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1505396703; cv=none; d=google.com; s=arc-20160816; b=KREVm44B1vZeJRvxmiprJBvsOcxzwIp6qbDJutiuiJJAGQ1tspJJmeIZ6Rd5DErEKq M0joR9mkt4Fqdp1fL2p2EMthgaV4knu4x5DNzJBI4wu3e+yezGtHZC11F1iIRouT6Uws /KSexPZuYu0akCXRxcLLxWlT6BspC01ObLtwDKFWqtau8qcCRlNTPLnoRcjZD2szXVYT F5J3jGGY4eEmIgU1O1O3LGYYeK7jsNNr1MU31BC+W31YavIR/2Rm9MptXMoIuH0E/+ih 0T28cwcIcbBfuIrcTht94KmjVSsf0EgVHsRWnJ30ub9d3MgQ16VL4pTWO7d4Xyak3ILa axdA== 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:reply-to :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:message-id:date:to:from:delivered-to :arc-authentication-results; bh=juX6eey9kuaEwjhshV9zOr65cwLGF16fluJk1nYfke0=; b=w684uzXzh+U8Povqdpf4RqQMUHLt/wl2P3Bt0na3052XXmPCzMMGM/udDrbWyllhx/ 3vOer4C7rr9iqjSIjFQiiDEW0yLyGvde7bcPFEp2BXEw3EAgL9uSPcF6wAi0pE3JW0gW VpoOZPjeDgKNRMGrUkAA/cYrHFsjrnpiQjg4t5fEkn/2ejaQnDqNh+670brf2UzO5MRP +apDwTk/xMthqkAXHPIf4Qkq04zxBcff2Z/z95AGhlC8qeYbfGPWZe2ivrGioZw6edqS eiO+663IYRPOcZW2+gSze5RsIP+XAGoHQbLvGtO9pLIZ25n1mOz4LhICNk6OGVJ0ThsK C+qg== ARC-Authentication-Results: i=1; mx.google.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 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id i70si49839wmf.99.2017.09.14.06.45.01; Thu, 14 Sep 2017 06:45:03 -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; 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 Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 19D97689EA7; Thu, 14 Sep 2017 16:44:54 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mx01.mail.netstorage.at (mx01.mail.netstorage.at [89.207.144.13]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id E48AD689E5A for ; Thu, 14 Sep 2017 16:44:47 +0300 (EEST) Received: from p1002.netstorage.at (p1002.netstorage.at [89.207.146.186]) by mx01.mail.netstorage.at (Postfix) with ESMTPS id 13E25A0459 for ; Thu, 14 Sep 2017 15:44:43 +0200 (CEST) Received: from mailix (noaport.de [46.237.252.213]) by p1002.netstorage.at (Postfix) with ESMTPA id B629882699 for ; Thu, 14 Sep 2017 15:44:42 +0200 (CEST) Received: from frogstar-a.kuhnle.local (frogstar-a.kuhnle.local [192.168.0.26]) by mailix with ESMTPA ; Thu, 14 Sep 2017 15:44:42 +0200 From: Tobias Rapp To: ffmpeg-devel@ffmpeg.org Date: Thu, 14 Sep 2017 15:44:41 +0200 Message-Id: <1505396682-24879-1-git-send-email-t.rapp@noa-archive.com> X-Mailer: git-send-email 2.7.4 X-PPP-Message-ID: <20170914134442.28516.37560@p1002.netstorage.at> X-PPP-Vhost: noa-archive.com X-NetStorage-MailScanner-Information: Please contact the ISP for more information X-NetStorage-MailScanner-ID: 13E25A0459.A40B3 X-NetStorage-MailScanner: Found to be clean X-NetStorage-MailScanner-SpamCheck: not spam (whitelisted), SpamAssassin (nicht zwischen gespeichert, Wertung=-0.5, benoetigt 6, autolearn=not spam, BAYES_00 -0.50) X-NetStorage-MailScanner-From: t.rapp@noa-archive.com X-Spam-Status: No Subject: [FFmpeg-devel] [PATCH 1/2] avformat/mxfenc: fix aspect ratio when writing 16:9 DV frames 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 MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Signed-off-by: Tobias Rapp --- libavformat/mxfenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/mxfenc.c b/libavformat/mxfenc.c index 7289e0b..da4d7b4 100644 --- a/libavformat/mxfenc.c +++ b/libavformat/mxfenc.c @@ -1810,7 +1810,7 @@ static int mxf_parse_dv_frame(AVFormatContext *s, AVStream *st, AVPacket *pkt) stype = vs_pack[3] & 0x1f; pal = (vs_pack[3] >> 5) & 0x1; - if ((vs_pack[2] & 0x07) == 0x02) + if ((vsc_pack[2] & 0x07) == 0x02) sc->aspect_ratio = (AVRational){ 16, 9 }; else sc->aspect_ratio = (AVRational){ 4, 3 };