From patchwork Sat Apr 1 15:50:22 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Clemens Ladisch X-Patchwork-Id: 9658077 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 40A2360353 for ; Sat, 1 Apr 2017 16:00:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 33E9C285AF for ; Sat, 1 Apr 2017 16:00:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 28A26285CB; Sat, 1 Apr 2017 16:00:19 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3604E285D2 for ; Sat, 1 Apr 2017 16:00:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751699AbdDAP77 (ORCPT ); Sat, 1 Apr 2017 11:59:59 -0400 Received: from webclient5.webclient5.de ([136.243.32.179]:43321 "EHLO webclient5.webclient5.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751717AbdDAP77 (ORCPT ); Sat, 1 Apr 2017 11:59:59 -0400 X-Greylist: delayed 541 seconds by postgrey-1.27 at vger.kernel.org; Sat, 01 Apr 2017 11:59:59 EDT Received: from [192.168.42.193] (tmo-096-106.customers.d1-online.com [80.187.96.106]) by webclient5.webclient5.de (Postfix) with ESMTPSA id 0D79B5583388 for ; Sat, 1 Apr 2017 17:50:55 +0200 (CEST) To: linux-media@vger.kernel.org From: Clemens Ladisch Subject: [PATCH] libdvbv5: T2 delivery descriptor: fix wrong size of bandwidth field Message-ID: Date: Sat, 1 Apr 2017 17:50:22 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 X-Virus-Scanned: clamav-milter 0.99.2 at webclient5 X-Virus-Status: Clean Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP ETSI EN 300 468 V1.11.1 ยง 6.4.4.2 defines the bandwith field as having four bits. Signed-off-by: Clemens Ladisch --- v4l-utils/lib/include/libdvbv5/desc_t2_delivery.h.orig +++ v4l-utils/lib/include/libdvbv5/desc_t2_delivery.h @@ -86,7 +86,7 @@ struct dvb_desc_t2_delivery { uint16_t transmission_mode:3; uint16_t guard_interval:3; uint16_t reserved:2; - uint16_t bandwidth:3; + uint16_t bandwidth:4; uint16_t SISO_MISO:2; } __attribute__((packed)); } __attribute__((packed));