From patchwork Sun Jan 28 01:29:01 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Niedermayer X-Patchwork-Id: 7430 Delivered-To: ffmpegpatchwork@gmail.com Received: by 10.2.156.27 with SMTP id q27csp2379729jak; Sat, 27 Jan 2018 17:29:28 -0800 (PST) X-Google-Smtp-Source: AH8x226vYtDqE7tJmOXPPAar3kru8zG0qmBaODpDedPAOwAp9bDsDKmmwoYP3LWwwpDqMALpIBoI X-Received: by 10.223.186.148 with SMTP id p20mr16323287wrg.259.1517102967977; Sat, 27 Jan 2018 17:29:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517102967; cv=none; d=google.com; s=arc-20160816; b=KPsfQ4Isx3sajEKJsR9VGylLrJj2F66TI76w1xW24zGlFbCKotJwdkpYz4LP4qM8m6 VuEaITp/QiG0RsmdIBg/8m7rRjS+hnp3e4Jws3UzXWnfpxLWhifNuiPoQOXiEH9CVzGe GkOKgnR0iINJbY4qbVL7DguDUSwytvanwri73LolqSS9N76eUHCdQp4ISMh1c/x5xB5Y 54v7Gdzw3B9pJRAeHYYzZK/5y3/HBKi8bCQTGumpMg1BYrwQ9uIpICJzfFircE+7vjNy L0rNV8T2G87BaUBLHIdQZyQIiMiQpZz5QGpML/NcZzhWiwCyENN9RsxVeKRxmAzwmiBt byhA== 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:references:in-reply-to:message-id:date :to:from:delivered-to:arc-authentication-results; bh=IwkGoa6hToDldYQlHqJoZw+gEGCXFrMROss2v9hlsk8=; b=Yw8IvH0/ZoTXuOLv6LApAPSWCWw72PJ1VlKCa4bbLvhvqHmGShmkRMOF624yk+s1zI kAd7rpWcqmCxPRWJaZ7LeOTc0DUAhg/g6iy0CDvIpYq4nm/EC+RnLSwzh4OsXo637V5S qV7ilfC7MQTvYgKmKgrpjIzRnX+1aF6SVTdf7i7o+74xawuOhwHDIEFCU/mT3whi0IbZ dQcKyjx121oYkOPsFCHrV8tEGEVZxxIVB+Ju0zftpKc0XyL9XwRaWWLk0pMmuMAVgF7y c2wNoyEuAJDzl8J1mDZEyevaUPRTiT1R2ikxs24/USttZ4DHvTlN9+R6Wbjk3p51LGmU M81A== 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 a8si7911299wrf.29.2018.01.27.17.29.27; Sat, 27 Jan 2018 17:29:27 -0800 (PST) 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 28F366804D7; Sun, 28 Jan 2018 03:29:19 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from vie01a-qmta-pe02-1.mx.upcmail.net (vie01a-qmta-pe02-1.mx.upcmail.net [62.179.121.181]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 3CD3B680385 for ; Sun, 28 Jan 2018 03:29:13 +0200 (EET) Received: from [172.31.218.44] (helo=vie01a-dmta-pe05-2.mx.upcmail.net) by vie01a-pqmta-pe02.mx.upcmail.net with esmtp (Exim 4.88) (envelope-from ) id 1efbmW-0004AZ-SY for ffmpeg-devel@ffmpeg.org; Sun, 28 Jan 2018 02:29:16 +0100 Received: from [172.31.216.43] (helo=vie01a-pemc-psmtp-pe01) by vie01a-dmta-pe05.mx.upcmail.net with esmtp (Exim 4.88) (envelope-from ) id 1efbmQ-0006AF-S8 for ffmpeg-devel@ffmpeg.org; Sun, 28 Jan 2018 02:29:10 +0100 Received: from localhost ([213.47.41.20]) by vie01a-pemc-psmtp-pe01 with SMTP @ mailcloud.upcmail.net id 3dV41x00u0S5wYM01dV5Lg; Sun, 28 Jan 2018 02:29:05 +0100 X-SourceIP: 213.47.41.20 From: Michael Niedermayer To: FFmpeg development discussions and patches Date: Sun, 28 Jan 2018 02:29:01 +0100 Message-Id: <20180128012902.22504-2-michael@niedermayer.cc> X-Mailer: git-send-email 2.16.1 In-Reply-To: <20180128012902.22504-1-michael@niedermayer.cc> References: <20180128012902.22504-1-michael@niedermayer.cc> Subject: [FFmpeg-devel] [PATCH 2/3] avcodec/get_bits: Document the return code of get_vlc2() 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" Found-by: kierank Signed-off-by: Michael Niedermayer --- libavcodec/get_bits.h | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/get_bits.h b/libavcodec/get_bits.h index c530015169..0c7f5ff0c6 100644 --- a/libavcodec/get_bits.h +++ b/libavcodec/get_bits.h @@ -550,6 +550,7 @@ static inline const uint8_t *align_get_bits(GetBitContext *s) * @param max_depth is the number of times bits bits must be read to completely * read the longest vlc code * = (max_vlc_length + bits - 1) / bits + * @returns the code parsed or -1 if no vlc matches */ static av_always_inline int get_vlc2(GetBitContext *s, VLC_TYPE (*table)[2], int bits, int max_depth)