From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTP id 0EE7842DE4 for ; Thu, 13 Jan 2022 02:22:26 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 3D08A68B3C1; Thu, 13 Jan 2022 03:58:55 +0200 (EET) Received: from mail-qk1-f176.google.com (mail-qk1-f176.google.com [209.85.222.176]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id D59BB68B3AB for ; Thu, 13 Jan 2022 03:58:51 +0200 (EET) Received: by mail-qk1-f176.google.com with SMTP id c190so3917230qkg.9 for ; Wed, 12 Jan 2022 17:58:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=HmrHCPGCxiuCRJl+I8ogIO3d7lWSkCMY8Ox7NMBjT60=; b=VOqQ2zRModtwPnxHcJ9wDPngF0L8cs2b1EhCuaKFlzDS3OVsKHUC7UpGlc8AF+aPjV YDV16H4FgHV/c+1kwciF0z3qdzSeL2uTPH0nTPAGMt3wgmuobL2RV3TOxmCmR/ZdDRGO IlKPJlfKbdXZASmNlpfIPCLTd6SJBdMxkGuCh1lUERJr8Oh4y3hZosvSbIJarecnBlYC 98L8P81uSqlvvw8GBiC4nn2y3F6nZf5FPcpMDBs0ZHze6qaetVK2UgHFygPIrlG31dkX OxLXuLR5+yP3KhPlnNDH52BY+iFKLRusMAz43MjibKl1hPC91XIPwj3AS8+8D0qeR7Ui WzcQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=HmrHCPGCxiuCRJl+I8ogIO3d7lWSkCMY8Ox7NMBjT60=; b=dGJNrDs0+BTf5maB5MhV7JGdWtu5Qo9uxdrjDqtBOiByGG9tskJL4Yng5ETHWd7UYI 91hglSciQf0aHbWf6FLC1+SfIaCrKP/z6rjod+HbPhD+Nv+mcB6tpS6AWgmu9iY02uWv /XrU3TAJmQMaRXPtgbhYGLstJJylmcD2/5oQ3DlfoJkN4vOdRQuePxF9pFuWIeKFxK6U wTpMfMHCYC5dEPQ5+h3itNcCsMG7AdiPZJbUviIOnWJP/DYrz6BlK0Cp9cFAy7X2c8eV AIJLxyF6zj3Rd6XxiZpolvhSPljyF1JS1Y7EByoD93kXhEvg+h2hBqq5mR2swau737KJ gIfA== X-Gm-Message-State: AOAM532QVHQjorN+vcDYujVVodm94KRcX9QC/Gc7/Xp8TZOQq0JjU0lw JLnhEP6EL+xb5vh2lFiw0G3Hksc7Ius= X-Google-Smtp-Source: ABdhPJwdIsUM22YenHy9jLT27+lHdn7UZncrQIiETaj/cQpyQmLjLZevmWFMKekgrncEny3Qv9w6Yg== X-Received: by 2002:a05:620a:2808:: with SMTP id f8mr1853656qkp.326.1642039130468; Wed, 12 Jan 2022 17:58:50 -0800 (PST) Received: from localhost.localdomain ([186.136.131.95]) by smtp.gmail.com with ESMTPSA id u19sm893081qke.1.2022.01.12.17.58.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jan 2022 17:58:50 -0800 (PST) From: James Almer To: ffmpeg-devel@ffmpeg.org Date: Wed, 12 Jan 2022 22:57:56 -0300 Message-Id: <20220113015806.519-21-jamrial@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220113015101.4-1-jamrial@gmail.com> References: <20220113015101.4-1-jamrial@gmail.com> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 139/281] sdr2: convert to new channel layout API X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 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 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: From: Anton Khirnov Signed-off-by: James Almer --- libavformat/sdr2.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libavformat/sdr2.c b/libavformat/sdr2.c index 6799339420..8b99419bc4 100644 --- a/libavformat/sdr2.c +++ b/libavformat/sdr2.c @@ -54,7 +54,8 @@ static int sdr2_read_header(AVFormatContext *s) ffstream(st)->need_parsing = AVSTREAM_PARSE_FULL; ast->codecpar->codec_type = AVMEDIA_TYPE_AUDIO; - ast->codecpar->channels = 1; + ast->codecpar->ch_layout.order = AV_CHANNEL_ORDER_UNSPEC; + ast->codecpar->ch_layout.nb_channels = 1; ast->codecpar->sample_rate = 8000; ast->codecpar->codec_id = AV_CODEC_ID_PCM_S16LE; avpriv_set_pts_info(ast, 64, 1, 8000); -- 2.34.1 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".