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 60187470EB for ; Tue, 26 Dec 2023 03:32:36 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 8DB6168D169; Tue, 26 Dec 2023 05:32:33 +0200 (EET) Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.93]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 19D4268CCE5 for ; Tue, 26 Dec 2023 05:32:25 +0200 (EET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1703561551; x=1735097551; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=Ein6HSP1MUXC26bkKf3wo08X8kvbCcHQiw03sDBJnV4=; b=nkwMYyFd7fjg1zQOuneDg6Wue3GwKKbcZo8vkaw9EdzT2fa5HzT56NXu yMGJRWnggL83mKMxAA7efPweg61A3pMhU+Kcu5sw9WZryGspnYPBRayr0 p/67j6d6ggMsqNElWiFE8zGzb9gfRr79P4fxsx7HGQnAQjUQWnpQJi7Gd BhmwaODG7da6m/fjRGPtVpUm7OjkD9+lWua+d8CLqefw78CLX/uPqdDoq QCxI1G6uXGB6al9ONNwKA95ZGBYFGlxJCWCm7Y/cuyrZcSlrfSw/A43US w/2zphZgKCuDUNOXl7PHKG8kVXhpfLBKNdaWVC0a2c87V0E56GKRUVvQK A==; X-IronPort-AV: E=McAfee;i="6600,9927,10934"; a="393476905" X-IronPort-AV: E=Sophos;i="6.04,304,1695711600"; d="scan'208";a="393476905" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Dec 2023 19:30:55 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10934"; a="901307216" X-IronPort-AV: E=Sophos;i="6.04,304,1695711600"; d="scan'208";a="901307216" Received: from t-dg2.sh.intel.com ([10.239.159.57]) by orsmga004.jf.intel.com with ESMTP; 25 Dec 2023 19:30:54 -0800 From: fei.w.wang-at-intel.com@ffmpeg.org To: ffmpeg-devel@ffmpeg.org Date: Tue, 26 Dec 2023 11:31:42 +0800 Message-Id: <20231226033143.1175171-1-fei.w.wang@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH v1 1/2] avcodec/av1dec: Move message of OBU info back to the beginning 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: fei.w.wang@intel.com 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: Fei Wang So that can show OBU info even it doesn't have decomposed content. Signed-off-by: Fei Wang --- libavcodec/av1dec.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libavcodec/av1dec.c b/libavcodec/av1dec.c index da05a0f039..e8041c1f58 100644 --- a/libavcodec/av1dec.c +++ b/libavcodec/av1dec.c @@ -1200,11 +1200,12 @@ static int av1_receive_frame_internal(AVCodecContext *avctx, AVFrame *frame) AV1RawOBU *obu = unit->content; const AV1RawOBUHeader *header; + av_log(avctx, AV_LOG_DEBUG, "Obu idx:%d, obu type:%d.\n", i, unit->type); + if (!obu) continue; header = &obu->header; - av_log(avctx, AV_LOG_DEBUG, "Obu idx:%d, obu type:%d.\n", i, unit->type); switch (unit->type) { case AV1_OBU_SEQUENCE_HEADER: -- 2.25.1 _______________________________________________ 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".