prores_raw: use MKBETAG for the frame header tag

Equivalent, but more explicit. All values in the header are big endian.
This commit is contained in:
Lynne
2025-08-28 15:14:03 +09:00
parent bc4d03c530
commit 0599d508c9
2 changed files with 2 additions and 2 deletions

View File

@@ -355,7 +355,7 @@ static int decode_frame(AVCodecContext *avctx,
return AVERROR_INVALIDDATA;
/* ProRes RAW frame */
if (bytestream2_get_le32(&gb) != MKTAG('p','r','r','f'))
if (bytestream2_get_be32(&gb) != MKBETAG('p','r','r','f'))
return AVERROR_INVALIDDATA;
int header_len = bytestream2_get_be16(&gb);

View File

@@ -46,7 +46,7 @@ static int prores_raw_parse(AVCodecParserContext *s, AVCodecContext *avctx,
if (bytestream2_get_be32(&gb) != buf_size) /* Packet size */
return buf_size;
if (bytestream2_get_le32(&gb) != MKTAG('p','r','r','f')) /* Frame header */
if (bytestream2_get_be32(&gb) != MKBETAG('p','r','r','f')) /* Frame header */
return buf_size;
int header_size = bytestream2_get_be16(&gb);