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 827A04AD98 for ; Tue, 21 May 2024 09:04:32 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 66CFB68D39C; Tue, 21 May 2024 12:03:48 +0300 (EEST) Received: from btbn.de (btbn.de [144.76.60.213]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 8114E68D2FE for ; Tue, 21 May 2024 12:03:38 +0300 (EEST) Received: from [authenticated] by btbn.de (Postfix) with ESMTPSA id 0AFA727FFD85E; Tue, 21 May 2024 11:03:38 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rothenpieler.org; s=mail; t=1716282218; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=rnU1IqMThkpyF5ZexU7Ap8xowabnLxMuL5BA79sio0c=; b=UfWpYbE32MNopdxsLSjwDYjsGSnS/h5MmJmFgLjEpLEgDLrHQ3KG6lq1jsAMAKj6bgNjOk rXEjKID54wQMTkYIuatlVkcBEYYQhqfCriYsBAIxayjmjypC+KIh5GU7a9Ci9ecrCcJHm6 sXNxH4wmjNBSjllBGiFCjBjqOhpf/qkkvwzJ39KSZ8ZCkTzpCfZEhFbdgK5ZqqlQj7mCNq gccBwK4AUw5cUOenx7Vg+EiiJCkfiraVoNk+1ajqbR8RG9vHAUNc/LcN1svQsN06lh3MEW KsRdETC9Y+ct9Py4SVQMpCm0zOm2hza1Y6TrYKeZB+oaqGTXUygKGTWsXyAvdg== From: Timo Rothenpieler To: ffmpeg-devel@ffmpeg.org Date: Tue, 21 May 2024 11:02:13 +0200 Message-ID: <20240521090316.782-5-timo@rothenpieler.org> X-Mailer: git-send-email 2.43.2 In-Reply-To: <20240521090316.782-1-timo@rothenpieler.org> References: <20240521090316.782-1-timo@rothenpieler.org> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 04/13] avformat/flvenc: remove !size check for audio packets 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: Timo Rothenpieler 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: --- libavformat/flvenc.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/libavformat/flvenc.c b/libavformat/flvenc.c index 4e79b06499..13e06aedbb 100644 --- a/libavformat/flvenc.c +++ b/libavformat/flvenc.c @@ -1067,11 +1067,6 @@ static int flv_write_packet(AVFormatContext *s, AVPacket *pkt) || par->codec_id == AV_CODEC_ID_AC3 || par->codec_id == AV_CODEC_ID_EAC3; - if (par->codec_type == AVMEDIA_TYPE_AUDIO && !pkt->size) { - av_log(s, AV_LOG_WARNING, "Empty audio Packet\n"); - return AVERROR(EINVAL); - } - if (extended_audio) flags_size = 5; else if (par->codec_id == AV_CODEC_ID_VP6F || par->codec_id == AV_CODEC_ID_VP6A || @@ -1146,8 +1141,6 @@ static int flv_write_packet(AVFormatContext *s, AVPacket *pkt) case AVMEDIA_TYPE_AUDIO: flags = get_audio_flags(s, par); - av_assert0(size); - avio_w8(pb, FLV_TAG_TYPE_AUDIO); break; case AVMEDIA_TYPE_SUBTITLE: -- 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".