From patchwork Thu Apr 1 21:26:10 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Rheinhardt X-Patchwork-Id: 26697 Return-Path: X-Original-To: patchwork@ffaux-bg.ffmpeg.org Delivered-To: patchwork@ffaux-bg.ffmpeg.org Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by ffaux.localdomain (Postfix) with ESMTP id E2A9F44AE5E for ; Fri, 2 Apr 2021 00:27:11 +0300 (EEST) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id C9EFE68A636; Fri, 2 Apr 2021 00:27:11 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05olkn2031.outbound.protection.outlook.com [40.92.89.31]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 2229A68A628 for ; Fri, 2 Apr 2021 00:27:07 +0300 (EEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CYxIJAmLHDDWhJGmwtLSdZV4M2k+yTccmfKF59UWO3+2+MawQN2yuG2MzOdV/746h0FkZ0n6BxUjb0eAKUnYh8+Ifc/AU5kIaIf/w4bE09zg8xwceThI5ZMuu2Ibc3vZPBspWzbau39U2LKqWpXNmKC8cvsC6Yg6sKBW4FsqWlU/UHRwuVDYsPiZunv7L9y/YIZB2ehnDhIeGckEdiFAvLXBYONymEqXaxMzmrhUqO1TuJJWkHSAzbO7kBbm0oPyc3IABWkVxJY8HpQWJ9S4q5haVoM9NqcqggL4WpugdlCHuz6XLl5m6fxp2htBjGZ+5SDvYrYwuM8x3QymmaEKFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=a07/N4CL+j2sP4/Rx0R6V+ppRppMzYNntFyGab3nzMk=; b=Ytg++JJOn1p09uCUVPIeuDDHjgEvAnQ/knseyn2cy36uLJh3Kpvm8/5HpoEqVtIQJblBVfXPLkUMyDzmn9MA71IMd9wO0xxf6Xbom2oVATa3HeKWcB3tjSxTMC3DfljY2OoWlo+4L7WdxiDKT7VObILtGgJmmU7P8mHRE33mcWtDvJm0yZLaVrhaHAlQrMj2S3phBW5+KDpUx7kSe6tEz7IINV7f0iIvjBa12b0qx5n7BQDuKMhYmVb9SiSM8jBgZ3Dgi0Qc46Ydip5MC8TJnyKoOdXdeI0eE0Sd60jcW1u3VFkT/s+Psj2ZTX4q/DZk6pBjuQ4MMpXDibbBb4PHYw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=a07/N4CL+j2sP4/Rx0R6V+ppRppMzYNntFyGab3nzMk=; b=egSwtxOh1MLWNEgyldA0xg6WVS6wFAQaQQUR9ZO+odsyLF5ASIH89pM1ZoNR9duy20iBBvDP5QCDyQsjs3jYrv42cNPNRsyDxNdWvzUBu5l79iIt0h/CdgsoEibrWT9hoz6WWw2QjLhWVnM/2uyLmDF0rhIeW0SX3eS8/wKOzrvuXCULW/lRNKG48/WW6oJbsn8C1CooDnWIy68V25EDswV/+YQHwir21OMRK5+rTo0ScnVYhE7mlN2gI/HjKhstBju/9hcXTyRTXdiR1ZzExpsV3kJgisSjyvYeeJUvELxtTZL4wureni1h86d50NzXZ4DIvApmZb1A5PbR3Dbc2Q== Received: from DB8EUR05FT053.eop-eur05.prod.protection.outlook.com (2a01:111:e400:fc0f::47) by DB8EUR05HT035.eop-eur05.prod.protection.outlook.com (2a01:111:e400:fc0f::334) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3977.25; Thu, 1 Apr 2021 21:27:06 +0000 Received: from HE1PR0301MB2154.eurprd03.prod.outlook.com (2a01:111:e400:fc0f::51) by DB8EUR05FT053.mail.protection.outlook.com (2a01:111:e400:fc0f::98) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3999.28 via Frontend Transport; Thu, 1 Apr 2021 21:27:06 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:6E2505DD53922F98806D5DA4BA128F337185F173C65B9038431C32F016DB3021; UpperCasedChecksum:5BC2CFB2D15371D49B72DFF7B6C9A747241A10D2351DAB67E9C7EC0BBB5D9E1E; SizeAsReceived:7572; Count:48 Received: from HE1PR0301MB2154.eurprd03.prod.outlook.com ([fe80::8128:5de5:4e94:9a21]) by HE1PR0301MB2154.eurprd03.prod.outlook.com ([fe80::8128:5de5:4e94:9a21%3]) with mapi id 15.20.3999.028; Thu, 1 Apr 2021 21:27:06 +0000 From: Andreas Rheinhardt To: ffmpeg-devel@ffmpeg.org Date: Thu, 1 Apr 2021 23:26:10 +0200 Message-ID: X-Mailer: git-send-email 2.27.0 In-Reply-To: References: X-TMN: [toE0MvJiclUw0M7kKM6V/xMfEOFGVtx2] X-ClientProxiedBy: AM0PR02CA0112.eurprd02.prod.outlook.com (2603:10a6:20b:28c::9) To HE1PR0301MB2154.eurprd03.prod.outlook.com (2603:10a6:3:2a::22) X-Microsoft-Original-Message-ID: <20210401212612.2343423-4-andreas.rheinhardt@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from sblaptop.fritz.box (188.192.137.96) by AM0PR02CA0112.eurprd02.prod.outlook.com (2603:10a6:20b:28c::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3999.27 via Frontend Transport; Thu, 1 Apr 2021 21:27:05 +0000 X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 48 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: 6d823b7e-021a-4eed-06d1-08d8f554e633 X-MS-Exchange-SLBlob-MailProps: S/btQ8cKWiRmQk3JzeNKq1p0dsiv88hWsDs5ClWXqLlzvIasYJc3QqQyjuIO/uyu2NrZ/0D9LtTcdeaotEDf1c5Sm1w6JY/DwdLzsxiry20qDHUunkq2phJ77wDxUpEKlJ4Yvlp2laK9pZB7bMPQMk5m5cJnZtuWbn4RC6XsvuPMnHAYu445plKEo5xRwOzBm9kVmy8RRLFHpmMG1uEd3wQHxVkLPu6hZN0nxDrEaAU2soQN/0+TY5JrfkeC7ozcLLHKVpXEB9XFmS5i2WRjyrc6cjtMYlfPcgq2kuyiVFnHa3jzOuCETYDqKYmxnrop2mfG41wM05NLksRwpjBFhnuQKL/Vy3Lgx05F3OK1Zmbpn8uIzmj/TzTAket22Qym1PsitLOje/z6VL5I6H7Q40iohH9r36I7f1xCUC39ikwPoyhas/HiskhhO8UR716dBCmMqfxVIUfShkCnpvyzEfi1AiuPFobyEn0Fm0ixLzmOzVzfffvPuupS9lw0Dmoq0rNfIGmbzgz50uJxRSV+qcWQrJL4uJqOaHI/qt5brSe1o1bGaoZGK8VRKlkkT85NSUIWZKZw7Y32hBW8DNBteivT5pzr+HOPDVWGNM1Mgf9VmWDppn7M3DUR75J5GwJPk//SZ1CpI6U885ITo0CF06hsRZ2GghT7FAFLyIR5fRmoL1Xy+4leznokJLAqJbdoXSENee2bQ4c+shFsB5lnyNTXmhbpSBUh2GiFsT/5QlZRKoUz+jCSQblMX9iE2H/XP608/YtXzYc= X-MS-TrafficTypeDiagnostic: DB8EUR05HT035: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: hW1jC1IKq02W+KLnOxptdW8qeRYriRAGubbp/cHwGduzQzqJmvaCI6KogwpNa1FLkniKEUBmIwAxSeZsLyjDFDEAGXtG59GYD3AgwcQDADU1vBQ3alJZw01ECccUmpVjwNgKabnmXocH1PF3dYTz487zwNulOEE1ODSFGk3UpQqHIM8ApshRHKmFuRlgYEmlhq3FFsJvS6ioTCD5E+BTVxryB39mSJsKdKqjzRBQx2PfMwd7qA+vOz+93z1vjGTWw0FDRf/0js1xLacZAvmga4pTdiZhU7ttZK5gDRqiclc7WuxIxwm4gk8cSz2vSS3i5L/+FWK0fPj0EYrKGFCzr9bfzU2wlP64zuWO8tgoHP5TcVrmnJf+nIegg0SM5dMXWgJTIbvzy7eHgie/YKdzaQ== X-MS-Exchange-AntiSpam-MessageData: DeFAAyKl/oV2rB88qO0G8+v3nxgoRNyWE4eZrsohhXwosm3ff7XH9D7CzjLQ4t+Ydca9JoGgfY4exHnMA0NNLji2XfoalZPVPTS+7ZS6sGZ6ASy0drKVlo/PoHP0pQpkLL1miXJueo/eIEqHU+ig9w== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6d823b7e-021a-4eed-06d1-08d8f554e633 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Apr 2021 21:27:06.3185 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-AuthSource: DB8EUR05FT053.eop-eur05.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: Internet X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB8EUR05HT035 Subject: [FFmpeg-devel] [PATCH 5/7] avformat/dss: Return 0 on success X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.20 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: Andreas Rheinhardt Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Signed-off-by: Andreas Rheinhardt --- libavformat/dss.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavformat/dss.c b/libavformat/dss.c index f4545326d2..fe8fd5cebb 100644 --- a/libavformat/dss.c +++ b/libavformat/dss.c @@ -247,7 +247,7 @@ static int dss_sp_read_packet(AVFormatContext *s, AVPacket *pkt) return AVERROR(EAGAIN); } - return pkt->size; + return 0; error_eof: return ret < 0 ? ret : AVERROR_EOF; @@ -302,7 +302,7 @@ static int dss_723_1_read_packet(AVFormatContext *s, AVPacket *pkt) if (ret < size) return ret < 0 ? ret : AVERROR_EOF; - return pkt->size; + return 0; } static int dss_read_packet(AVFormatContext *s, AVPacket *pkt)