X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fflac_parser.c;h=5d0705ce631f7563ec5a305aa99a6594be2495e3;hb=5e546864b09379910721b35a14713982d933d9dd;hp=2721286464d83de25c085f3760b0d31da1b65c0b;hpb=1811b7d1f5330e04a48b1d6425cf1ef6ed776ed1;p=ffmpeg diff --git a/libavcodec/flac_parser.c b/libavcodec/flac_parser.c index 2721286464d..5d0705ce631 100644 --- a/libavcodec/flac_parser.c +++ b/libavcodec/flac_parser.c @@ -221,7 +221,7 @@ static int find_headers_search(FLACParseContext *fpc, uint8_t *buf, int buf_size } for (; i < buf_size - 1; i += 4) { - x = AV_RB32(buf + i); + x = AV_RN32(buf + i); if (((x & ~(x + 0x01010101)) & 0x80808080)) { for (j = 0; j < 4; j++) { if ((AV_RB16(buf + i + j) & 0xFFFE) == 0xFFF8)