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 7CF2849ACF for ; Tue, 27 Feb 2024 22:14:10 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 726B068CE0B; Wed, 28 Feb 2024 00:12:57 +0200 (EET) Received: from mail-lj1-f179.google.com (mail-lj1-f179.google.com [209.85.208.179]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id E7FD068CACE for ; Wed, 28 Feb 2024 00:12:40 +0200 (EET) Received: by mail-lj1-f179.google.com with SMTP id 38308e7fff4ca-2d28051376eso46738091fa.0 for ; Tue, 27 Feb 2024 14:12:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709071960; x=1709676760; darn=ffmpeg.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=uX+oR2akcxZ8UMxUtS21Up7aAnWZwudiiFc59F+0fOU=; b=iGBxg8fSEjq2oqMuMNqv98RJFWP9z/khr0xgc/N+Z0ijUiYe9jYPFnVHjl9i+Wvqfm DgYUuCuUwtZDxcJC/99XpRLgmXZAMWbfBm+SN6QOaulv3G0tNSgV7IVo+jR+kWkwOrbr xtoi2TQed8PqnakIxK0tmWqEHieWwBriaUja/MUqyo0YcvPvQyeByJlOUXuqH2wU56mL HDHGQpuQvldl8p272tSsQiVySJqtZDSQ61gMO/ALeuSACMq9Of87hQE30d/OZsRNIoVp 8b3rT8iJTYZZWRhH4LdGwy2UpGxXt4WLva6WsO7ifbKTkH2i8F5wBL0sMd8cg1W0BNSU u7Kg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709071960; x=1709676760; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=uX+oR2akcxZ8UMxUtS21Up7aAnWZwudiiFc59F+0fOU=; b=fKoyBhBC6M+wwNGfJcRU37vuaArknc/3mIS0luBZgJbDyYluvd7+Td2H1WzBSGE9A8 MANy5h7Ie4nGmqUIfexnJBM2lLmRIYS2wWiQzEZAV4s96pjhdeTOe42KyZJ402hAF+Hl UEmz57qgXSjJh2AllYwUDgmmt/8xOJxdSmxFqCdsYPXVZmhOf6gtrUqYdeqpqzuUCupq i7NpheWgxkWItpY1bY1pRPaGzWig/BnNhYdgTCEg6DOaJ81YUxAxsC4GeKE+KPCiJeBM W2Ulu4KDMshOuLCKeZsm4Jb5zozPu25SJ4QvW+6gIoOwiRgbByUX7MbNrHz5oc6PLRDz EtHQ== X-Gm-Message-State: AOJu0YwA+99EcNC6h+wn1EpvkB7okhhs6vURh0znyOTd8KsB+Za8xe0K jgP1hTtfraDt6fJoR6nXJeVgWew1ii+diF95bPxWP8h+hNlUy9Vu48FXWHox X-Google-Smtp-Source: AGHT+IGpZ5s1d9oXSFT0I8PBYOQQeCJaVWZT3Kt79IPle6pd6lSpM+owKBTNQf0q+RD09u4kf1h1qQ== X-Received: by 2002:a05:651c:38d:b0:2d2:3018:4cdf with SMTP id e13-20020a05651c038d00b002d230184cdfmr5642530ljp.23.1709071959991; Tue, 27 Feb 2024 14:12:39 -0800 (PST) Received: from localhost.localdomain (91-153-198-187.elisa-laajakaista.fi. [91.153.198.187]) by smtp.gmail.com with ESMTPSA id j9-20020a2e8009000000b002d09bc941e8sm1373564ljg.139.2024.02.27.14.12.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 14:12:39 -0800 (PST) From: =?UTF-8?q?Jan=20Ekstr=C3=B6m?= To: ffmpeg-devel@ffmpeg.org Date: Wed, 28 Feb 2024 00:12:13 +0200 Message-ID: <20240227221226.1377758-11-jeebjp@gmail.com> X-Mailer: git-send-email 2.43.2 In-Reply-To: <20240227221226.1377758-1-jeebjp@gmail.com> References: <20240227221226.1377758-1-jeebjp@gmail.com> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH v6 10/13] ffmpeg: pass first video AVFrame's side data to encoder 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: This enables further configuration of output based on the results of input decoding and filtering in a similar manner as the color information. --- fftools/ffmpeg_enc.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/fftools/ffmpeg_enc.c b/fftools/ffmpeg_enc.c index bdba50df03..e39ba05b3b 100644 --- a/fftools/ffmpeg_enc.c +++ b/fftools/ffmpeg_enc.c @@ -245,6 +245,16 @@ int enc_open(void *opaque, const AVFrame *frame) enc_ctx->colorspace = frame->colorspace; enc_ctx->chroma_sample_location = frame->chroma_location; + ret = avcodec_configure_side_data( + enc_ctx, + (const AVFrameSideData **)frame->side_data, frame->nb_side_data, + AV_FRAME_SIDE_DATA_SET_FLAG_NO_DUPLICATES); + if (ret < 0) { + av_log(NULL, AV_LOG_ERROR, "failed to configure video encoder: %s!\n", + av_err2str(ret)); + return ret; + } + if (enc_ctx->flags & (AV_CODEC_FLAG_INTERLACED_DCT | AV_CODEC_FLAG_INTERLACED_ME) || (frame->flags & AV_FRAME_FLAG_INTERLACED) #if FFMPEG_OPT_TOP -- 2.43.2 _______________________________________________ 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".