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 F18984211F for ; Wed, 23 Feb 2022 07:52:54 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 96D1F68B252; Wed, 23 Feb 2022 09:52:51 +0200 (EET) Received: from mail0.khirnov.net (red.khirnov.net [176.97.15.12]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 63FC168B1E6 for ; Wed, 23 Feb 2022 09:52:45 +0200 (EET) Received: from localhost (localhost [IPv6:::1]) by mail0.khirnov.net (Postfix) with ESMTP id 2849E240179 for ; Wed, 23 Feb 2022 08:52:44 +0100 (CET) Received: from mail0.khirnov.net ([IPv6:::1]) by localhost (mail0.khirnov.net [IPv6:::1]) (amavisd-new, port 10024) with ESMTP id 1cwSGWmAhvE7 for ; Wed, 23 Feb 2022 08:52:42 +0100 (CET) Received: from lain.red.khirnov.net (lain.red.khirnov.net [IPv6:2001:67c:1138:4306::3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "lain.red.khirnov.net", Issuer "smtp.khirnov.net SMTP CA" (verified OK)) by mail0.khirnov.net (Postfix) with ESMTPS id CFAAF240175 for ; Wed, 23 Feb 2022 08:52:42 +0100 (CET) Received: by lain.red.khirnov.net (Postfix, from userid 1000) id D059C1601AD; Wed, 23 Feb 2022 08:52:42 +0100 (CET) From: Anton Khirnov To: FFmpeg development discussions and patches In-Reply-To: =?utf-8?q?=3CAM7PR03MB6660955E44EEF8C0986BA7D98F279=40AM7PR03MB?= =?utf-8?q?6660=2Eeurprd03=2Eprod=2Eoutlook=2Ecom=3E?= References: <20220201223058.31090-1-scott.the.elm@gmail.com> <816bc1cd-db7c-2091-5b13-6c54560110e4@gmail.com> =?utf-8?q?=3CAM7PR03MB6660?= =?utf-8?q?955E44EEF8C0986BA7D98F279=40AM7PR03MB6660=2Eeurprd03=2Eprod=2Eout?= =?utf-8?q?look=2Ecom=3E?= Mail-Followup-To: FFmpeg development discussions and patches Date: Wed, 23 Feb 2022 08:52:42 +0100 Message-ID: <164560276282.9519.14614704915454299055@lain.red.khirnov.net> User-Agent: alot/0.8.1 MIME-Version: 1.0 Subject: Re: [FFmpeg-devel] [PATCH] lavu: make av_get_media_type_string() never return NULL 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: Quoting Andreas Rheinhardt (2022-02-02 03:13:12) > Who sets invalid media types? > (In case of fftools/*: If they don't set it themselves, they (and all > our users) should be able to rely on our libraries to not set invalid > values. The same goes for all demuxers (as they set this value > themselves). Checks are only necessary where the media type comes from > the user; this means muxers (where the check should be done generically) > and possibly avfiltergraph.c (I am pretty sure that the type has already > been checked earlier for filters).) Some demuxer code in lavf looks like it might result in a TYPE_UNKNOWN AVStream. E.g. argo_brp, avi, both asfdecs, gxf. -- Anton Khirnov _______________________________________________ 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".