From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.ffmpeg.org (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTPS id 9BF284BE05 for ; Thu, 22 May 2025 16:57:59 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTP id C7E4368DD24; Thu, 22 May 2025 19:57:49 +0300 (EEST) Received: from mail-qv1-f49.google.com (mail-qv1-f49.google.com [209.85.219.49]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTPS id 8C69F68C0E9 for ; Thu, 22 May 2025 19:57:43 +0300 (EEST) Received: by mail-qv1-f49.google.com with SMTP id 6a1803df08f44-6f8a87f0c0fso79583186d6.0 for ; Thu, 22 May 2025 09:57:43 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1747933061; x=1748537861; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=p1i7aPiKNZ1Aruv1+yiTxnBqToi9z0kDHgCSWT4iUwc=; b=n9DeR9YDf77mnwKnRE9GMNp+ABFl/eswkxRn9NUc5NzoBsNHo5PC+GOTUmeMaGuU4/ kGReUZYQlfPJJGD/s9TpajP1FKkaAs+mkJ8LQ0P1Z4ktnqwkWRCrEZ0JrUgbrS0UG+ZF lpL6wWwhaybT9Oc2u096jquAr2TsKa70pPt/l+QIFfOEvx2QAmAryPXOlh+0iJkItVA9 vzbwLG96ry7y1XTa/ZkMpBV9Ej+xpHioP335Nbm2ZXr9aEV4w/EiLc9hq2Jd1j+L8QM0 9n1pNjTpT1Rnqcxmj+qsBoIhyC98+1XsUD2AnyT7MSgBtoMfVEoO2pC9qCf8q0LJhImx SlHA== X-Gm-Message-State: AOJu0YzoKLP4ngnAVyNUWSd9tSKhpkbi7AzoRkZXEWAI9HU6e0P66m6/ uyk/CLEiIziV/+CweoDPgMLFdf+IYxCCc+gqpMkDqgTu9QyIcbpYlg719DxZwOSL X-Gm-Gg: ASbGncsgJ1xJa5p5ANEJV6uYAcm7RCjmzPN2g2OgTqeuHHOV9CeGy1tpKpIaT31PQ4c a41jAE7NLuRPnLbLwpoKMuFR5iyeEOCF31PVWwTw1TbyrNrFG7uu8E3lifEtJucbuP1EwUAyRvd 8lWN52LiMOnREofEhfqRszKbN2HtH+ZLkkdJfkKJAyC6T86w+QgwlGIsSLwWNp6mNOQaTVM2Fgu hfCvaOWM8lBnfTjjuI7sec2jjKnM5ggCwgbbzhY9qxDmWX/MFK6ZCs8+OzVGdrtWYLR56Z4+vjq u4e8g+/X/zOPdu60nb2BaSIMy0CAqHbLF48eSSLtcZC6v+Q= X-Google-Smtp-Source: AGHT+IGTQXtCPnirO3aVo5xRZS5JpQeaE/UyZv7yKMzbV8eZeVGO1AJZ014fBdVSr4h3cqNpfD5uLQ== X-Received: by 2002:ad4:4b65:0:b0:6f8:b7cd:984b with SMTP id 6a1803df08f44-6f8b7cd990emr361022566d6.37.1747933061478; Thu, 22 May 2025 09:57:41 -0700 (PDT) Received: from bellini.. ([198.58.151.12]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-6f8b08bf5e4sm101614526d6.61.2025.05.22.09.57.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 May 2025 09:57:41 -0700 (PDT) From: Tristan Matthews To: ffmpeg-devel@ffmpeg.org Date: Thu, 22 May 2025 12:57:25 -0400 Message-ID: <20250522165731.1200414-2-tmatth@videolan.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20250522165731.1200414-1-tmatth@videolan.org> References: <20250522165731.1200414-1-tmatth@videolan.org> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 2/2] doc/examples/qsv_decode: use av_err2str 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: Tristan Matthews 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: --- doc/examples/qsv_decode.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/doc/examples/qsv_decode.c b/doc/examples/qsv_decode.c index 5a6f3625aa..ec91109480 100644 --- a/doc/examples/qsv_decode.c +++ b/doc/examples/qsv_decode.c @@ -219,11 +219,8 @@ int main(int argc, char **argv) ret = decode_packet(decoder_ctx, frame, sw_frame, NULL, output_ctx); finish: - if (ret < 0) { - char buf[1024]; - av_strerror(ret, buf, sizeof(buf)); - fprintf(stderr, "%s\n", buf); - } + if (ret < 0) + fprintf(stderr, "%s\n", av_err2str(ret)); avformat_close_input(&input_ctx); -- 2.45.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".