mirror of
https://mirror.skon.top/https://github.com/FFmpeg/FFmpeg
synced 2026-04-20 21:00:41 +08:00
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:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user