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 A890B4708D for ; Wed, 26 Jul 2023 08:27:31 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id A6ECB68C929; Wed, 26 Jul 2023 11:27:27 +0300 (EEST) Received: from bg4.exmail.qq.com (bg4.exmail.qq.com [43.155.65.254]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 9B52D68C65D for ; Wed, 26 Jul 2023 11:27:20 +0300 (EEST) X-QQ-mid: bizesmtp78t1690360033touoiocx Received: from localhost ( [103.102.203.196]) by bizesmtp.qq.com (ESMTP) with id ; Wed, 26 Jul 2023 16:27:12 +0800 (CST) X-QQ-SSF: 01100000000000Z0Z000000A0000000 X-QQ-FEAT: RrZlkntZBfndvkxgsmSusycNyIV4rpQNWQPsuyH6aUkPD80VVyqSwNdd/Sft3 ov09CbBEsvqagY9vZsAntWfRoZXTaRb84/OeDNeK+d0P7d3xq+gdtFlfzG7lTh8OCxG4Q5X 9j1Y0RzzAplY7SkCj6E/5nrUpomOG+ud94WSkfuO8bfzMcXe8masswi2fsgGTK2uSR+pA9N rwJqi0dINB7OS3PEmik7DlNf3Ew49BkAfHanhswxD5b13XkoE9yVcFdLmVVd4j3Y/ZrjXbH lc2MmhyBLysVIQOpyjUG0Z3BH2d7qJlYt/2tedMUUIII1giINPbzwTaGikeeM8N9rGaeub/ 4PuxZ/Uja36n+Rxhdg= X-QQ-GoodBg: 0 X-BIZMAIL-ID: 7713384421093024516 From: Steven Liu To: ffmpeg-devel@ffmpeg.org Date: Wed, 26 Jul 2023 16:27:11 +0800 Message-Id: <20230726082711.92361-1-lq@chinaffmpeg.org> X-Mailer: git-send-email 2.40.0 MIME-Version: 1.0 X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:chinaffmpeg.org:qybglogicsvrsz:qybglogicsvrsz3a-0 Subject: [FFmpeg-devel] [PATCH] avformat/flv: correct the video frametype mask to 0x70 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: Steven Liu , flvAnalyser 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: avformat/flv: correct the video frametype mask to 0x70 because the flv specification said the video frametype should use value range from 0x00 to 0x70, so use 0xF0 have no problem before support enhanced flv, but the 0xF0 will get incorrect result after support enhanced flv, so should set the video frametype mask 0x70 to make it correct now. Reported-By: flvAnalyser Signed-off-by: Steven Liu --- libavformat/flv.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/flv.h b/libavformat/flv.h index 91e0a4140c..f710963b92 100644 --- a/libavformat/flv.h +++ b/libavformat/flv.h @@ -48,7 +48,7 @@ #define FLV_AUDIO_CODECID_MASK 0xf0 #define FLV_VIDEO_CODECID_MASK 0x0f -#define FLV_VIDEO_FRAMETYPE_MASK 0xf0 +#define FLV_VIDEO_FRAMETYPE_MASK 0x70 #define AMF_END_OF_OBJECT 0x09 -- 2.40.0 _______________________________________________ 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".