From patchwork Wed Dec 4 09:17:18 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liu Steven X-Patchwork-Id: 16584 Return-Path: X-Original-To: patchwork@ffaux-bg.ffmpeg.org Delivered-To: patchwork@ffaux-bg.ffmpeg.org Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by ffaux.localdomain (Postfix) with ESMTP id 266DC44A791 for ; Wed, 4 Dec 2019 11:17:35 +0200 (EET) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 015C968AF5D; Wed, 4 Dec 2019 11:17:35 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from smtpproxy21.qq.com (smtpbg702.qq.com [203.205.195.102]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 6472968AD92 for ; Wed, 4 Dec 2019 11:17:28 +0200 (EET) X-QQ-mid: bizesmtp23t1575451040tqunxhd9 Received: from localhost (unknown [47.90.47.25]) by esmtp10.qq.com (ESMTP) with id ; Wed, 04 Dec 2019 17:17:19 +0800 (CST) X-QQ-SSF: 01100000002000K0ZTF1B00A0000000 X-QQ-FEAT: RECME178Ko8cvF4zT8biT4qycJioLHcbIvHJWISVjvmgJfuhFpIBEiqxTz36f L7B30hre25w+/Uh00op2FFizeXPHUKpcJtPAhKj1V32RD3uvaNi4KbEIdrCACLVo82mP26M y9cW6axQo9Wa0dFltryhLPGV1DQOuDV+/6HfCqvkCQdcG89oojjVZQEOGsGw7Gwc5MV8aZW MB9vwBoP2ghBSlelwu7deBwvTTux7Vpjet53XJgjaaT4zTtp84aVYygMNzwy35E03sPjiGt xKCIHbDrKEKvTnAbxHs0NC/YjVLin5OKsQCDXIQhMGBuISvpkVIJNUvwQ= X-QQ-GoodBg: 0 From: Steven Liu To: ffmpeg-devel@ffmpeg.org Date: Wed, 4 Dec 2019 17:17:18 +0800 Message-Id: <20191204091718.21049-1-lq@chinaffmpeg.org> X-Mailer: git-send-email 2.10.1.382.ga23ca1b.dirty X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:chinaffmpeg.org:qybgforeign:qybgforeign5 X-QQ-Bgrelay: 1 Subject: [FFmpeg-devel] [PATCH] avformat/cache: rename the class name fro Cache to cache 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: Steven Liu MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Because the protocol name is cache, but the class name is Cache. for example: ffmpeg -protocols will show: Supported file protocols: Input: async bluray cache concat crypto data ffrtmphttp file ftp gopher hls http httpproxy https mmsh mmst pipe rtmp rtmps rtmpt rtmpts rtp srtp subfile tcp tls udp udplite unix Output: crypto ffrtmphttp file ftp gopher http httpproxy https icecast md5 pipe prompeg rtmp rtmps rtmpt rtmpts rtp srtp tee tcp tls udp udplite unix But i cannot find the cache protocol in help message liuqideMacBook-Pro:build liuqi$ ffmpeg --help full | grep cache ffmpeg version N-95812-gd73f062706 Copyright (c) 2000-2019 the FFmpeg developers built with Apple LLVM version 10.0.0 (clang-1000.11.45.5) configuration: --enable-fontconfig --enable-gpl --enable-libass --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libspeex --enable-libx264 --enable-libx265 --enable-libfdk-aac --enable-version3 --enable-nonfree --enable-videotoolbox --enable-libxml2 --samples=fate-suite/ --enable-libopencv libavutil 56. 36.100 / 56. 36.100 libavcodec 58. 62.100 / 58. 62.100 libavformat 58. 35.100 / 58. 35.100 libavdevice 58. 9.101 / 58. 9.101 libavfilter 7. 66.100 / 7. 66.100 libswscale 5. 6.100 / 5. 6.100 libswresample 3. 6.100 / 3. 6.100 libpostproc 55. 6.100 / 55. 6.100 -hls_allow_cache E......... explicitly set whether the client MAY (1) or MUST NOT (0) cache media segments (from INT_MIN to INT_MAX) (default -1) -segment_list_flags E......... set flags affecting segment list generation (default cache) cache E......... allow list caching -segment_list_flags E......... set flags affecting segment list generation (default cache) cache E......... allow list caching frames ..FV...... set number of frames in cache (from 2 to 512) (default 30) liuqideMacBook-Pro:build liuqi$ after patch: bogon:dash liuqi$ ./ffmpeg --help full | grep cache ffmpeg version N-95942-gece617e849 Copyright (c) 2000-2019 the FFmpeg developers built with Apple LLVM version 10.0.0 (clang-1000.11.45.5) configuration: --enable-fontconfig --enable-gpl --enable-libass --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libspeex --enable-libx264 --enable-libx265 --enable-libfdk-aac --enable-version3 --enable-nonfree --enable-videotoolbox --enable-libxml2 --samples=fate-suite/ --enable-libopencv --enable-libopus libavutil 56. 36.101 / 56. 36.101 libavcodec 58. 64.101 / 58. 64.101 libavformat 58. 35.100 / 58. 35.100 libavdevice 58. 9.101 / 58. 9.101 libavfilter 7. 67.100 / 7. 67.100 libswscale 5. 6.100 / 5. 6.100 libswresample 3. 6.100 / 3. 6.100 libpostproc 55. 6.100 / 55. 6.100 cache AVOptions: -hls_allow_cache E......... explicitly set whether the client MAY (1) or MUST NOT (0) cache media segments (from INT_MIN to INT_MAX) (default -1) -segment_list_flags E......... set flags affecting segment list generation (default cache) cache E......... allow list caching -segment_list_flags E......... set flags affecting segment list generation (default cache) cache E......... allow list caching frames ..FV...... set number of frames in cache (from 2 to 512) (default 30) bogon:dash liuqi$ can find the cache AVOptions after patch. Signed-off-by: Steven Liu --- libavformat/cache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/cache.c b/libavformat/cache.c index 3425be9350..09e5d5f832 100644 --- a/libavformat/cache.c +++ b/libavformat/cache.c @@ -326,7 +326,7 @@ static const AVOption options[] = { }; static const AVClass cache_context_class = { - .class_name = "Cache", + .class_name = "cache", .item_name = av_default_item_name, .option = options, .version = LIBAVUTIL_VERSION_INT,