From patchwork Tue Nov 8 11:25:46 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anton Khirnov X-Patchwork-Id: 39229 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a21:999a:b0:a4:2148:650a with SMTP id ve26csp2761791pzb; Tue, 8 Nov 2022 03:26:26 -0800 (PST) X-Google-Smtp-Source: AMsMyM7Flc8hx0w4YzPPj2HNyvB0vJXp8Y1LNdgDtWulfVLqcknZATHDv11CAPKp0l7ZmW7QjkTh X-Received: by 2002:a50:bb27:0:b0:461:a7f8:c8c7 with SMTP id y36-20020a50bb27000000b00461a7f8c8c7mr910092ede.325.1667906785930; Tue, 08 Nov 2022 03:26:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667906785; cv=none; d=google.com; s=arc-20160816; b=iEO6bxGtva19JnN6sdYGKiKEf6AeFpMvehcGz6zoOkxDlFq/XLWj3LBiUVLVmxVj0n xGjt0H4KSNX0P9y5kkxDCO1YiV1+kGSJTWnwOTb6ek3hPvA4aSvC9xkvV+4XpXCynjuy Rk51TV8TN8PiBPw+APg1KZ4Bn8uXdou5LLwjDkhI4SuIeWvkxihHcWzEKDUWuwgBtMky AvzlWjQpAJfeFlavnzFxtY9GHys3xCmZWLs6UnucEFEWZbYsoipuRd5KzjF/ySOoTMU1 kaFDdQvEor5F64DOckTg5cuyQFbG9+cWIJfSOMdAh8zQoxREltryX3xFE6BgKAxALXaY KWHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:reply-to:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:subject:mime-version:message-id:date:to:from :delivered-to; bh=NGjtPhY9TNQN3toVbVvD2E5L7n9qeeFT3FsCbOvGNlg=; b=MsOQEe+MgJXegaTrQX+CLm3/nXGwzbmMXn+sZzjJQrV4orJ+a7yWlIUvz3kxKDX4VE IbPJRjwZMIsV+fqsRmjvKv9u53v0NJrv+/4t225xHUAeJPuigufqLO5xYUwno33Hrhmj 0kWfgm+3iYXNB41b0OsX8qQaIhXuIqpVGSeRbQf2pch09FfsSdfr2YGdiaQeGE/WwfhY oUr0RdcdA+xZeYEOAqrhS20JoxRn9vpsyjD3ssBtdtsmk8ksytTmeYMYCB2ASIyaRgb1 QDGv5CulRE6waLD2fJGeZdE2T14rVNNhn+kPIuPEvGRS5RA39QiEy/IWRdDDrA+8/Alb MtNw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id q5-20020a1709066b0500b00779e6c93108si9223932ejr.598.2022.11.08.03.26.25; Tue, 08 Nov 2022 03:26:25 -0800 (PST) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 6231A68082D; Tue, 8 Nov 2022 13:26:11 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail0.khirnov.net (red.khirnov.net [176.97.15.12]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 51CA968ABFD for ; Tue, 8 Nov 2022 13:26:03 +0200 (EET) Received: from localhost (localhost [IPv6:::1]) by mail0.khirnov.net (Postfix) with ESMTP id 9512D2405EC for ; Tue, 8 Nov 2022 12:26:01 +0100 (CET) Received: from mail0.khirnov.net ([IPv6:::1]) by localhost (mail0.khirnov.net [IPv6:::1]) (amavisd-new, port 10024) with ESMTP id uiRIsF2dUacN for ; Tue, 8 Nov 2022 12:26:00 +0100 (CET) Received: from libav.khirnov.net (libav.khirnov.net [IPv6:2a00:c500:561:201::7]) (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 "libav.khirnov.net", Issuer "smtp.khirnov.net SMTP CA" (verified OK)) by mail0.khirnov.net (Postfix) with ESMTPS id CE68E2400F5 for ; Tue, 8 Nov 2022 12:26:00 +0100 (CET) Received: from libav.khirnov.net (libav.khirnov.net [IPv6:::1]) by libav.khirnov.net (Postfix) with ESMTP id 698853A0212 for ; Tue, 8 Nov 2022 12:25:54 +0100 (CET) From: Anton Khirnov To: ffmpeg-devel@ffmpeg.org Date: Tue, 8 Nov 2022 12:25:46 +0100 Message-Id: <20221108112550.8375-1-anton@khirnov.net> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 1/5] lavf/rtpdec_asf: set AVFMT_FLAG_NONBLOCK 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 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: Vt+Swy+drJ23 Makes sure EAGAIN from the internal ASF demuxer is propagated to the RTP demuxer. Will be important in following commits. --- libavformat/rtpdec_asf.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavformat/rtpdec_asf.c b/libavformat/rtpdec_asf.c index 72ead6975a..7824082d22 100644 --- a/libavformat/rtpdec_asf.c +++ b/libavformat/rtpdec_asf.c @@ -128,6 +128,7 @@ int ff_wms_parse_sdp_a_line(AVFormatContext *s, const char *p) return AVERROR(ENOMEM); } rt->asf_ctx->pb = &pb.pub; + rt->asf_ctx->flags |= AVFMT_FLAG_NONBLOCK; av_dict_set(&opts, "no_resync_search", "1", 0); if ((ret = ff_copy_whiteblacklists(rt->asf_ctx, s)) < 0) {