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 5219245DB8 for ; Wed, 11 Oct 2023 15:09:23 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 79ECD68CBDA; Wed, 11 Oct 2023 18:09:02 +0300 (EEST) Received: from haasn.dev (haasn.dev [78.46.187.166]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 1C4EF68CA90 for ; Wed, 11 Oct 2023 18:08:54 +0300 (EEST) Received: from haasn.dev (unknown [10.30.0.2]) by haasn.dev (Postfix) with ESMTP id C15344BBEF; Wed, 11 Oct 2023 17:08:53 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=haasn.xyz; s=mail; t=1697036933; bh=tixdK0gJzvO0cDnMbPHfUA6XEi1JOl3UUg3H5BFsomg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IvyEzhH5smI91wsxY4zEJAGZiY4OW6t27lWnDkfxPw8mGa/N/xuvFpZeBqpxnz/Et CBtOtDB76bQafnG4qFXFuFdbKGSM6/ikPj/0qaafqVnresurzuij8asAvn3zfNiBI+ 9AJpgG2KMAYxjniji++iAdw9G4iimmtXd4XQzoyA= From: Niklas Haas To: ffmpeg-devel@ffmpeg.org Date: Wed, 11 Oct 2023 16:55:36 +0200 Message-ID: <20231011150848.117897-3-ffmpeg@haasn.xyz> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231011150848.117897-1-ffmpeg@haasn.xyz> References: <20231011150848.117897-1-ffmpeg@haasn.xyz> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 2/7] lavc/options: properly init AVCodecContext.colorspace 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 Cc: Niklas Haas 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: Niklas Haas This currently defaults to AVCOL_SPC_RGB, but it should properly default to AVCOL_SPC_UNSPECIFIED, following the logic of the other fields. --- libavcodec/options.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/options.c b/libavcodec/options.c index a9b35ee1c3..c39218d7fb 100644 --- a/libavcodec/options.c +++ b/libavcodec/options.c @@ -123,6 +123,7 @@ static int init_context_defaults(AVCodecContext *s, const AVCodec *codec) s->pix_fmt = AV_PIX_FMT_NONE; s->sw_pix_fmt = AV_PIX_FMT_NONE; s->sample_fmt = AV_SAMPLE_FMT_NONE; + s->colorspace = AVCOL_SPC_UNSPECIFIED; #if FF_API_REORDERED_OPAQUE FF_DISABLE_DEPRECATION_WARNINGS -- 2.42.0 _______________________________________________ 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".