Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-08-28 18:21:03 +0300
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-09-02 12:55:22 +0300
commit7de9c0e9d7f537389a238b30d40eac57a2fbaf6d (patch)
treef78a73b2aae29d3571eb0f80b54e8e62dd16f62b /libavcodec/flac.h
parent5089884e3c9d7369c7a6bae6da7f28de41365ec7 (diff)
avcodec/flac: Don't use bytestream API unnecessarily
It makes no sense here, as flac_parse_block_header() is not even supposed to advance the caller's pointer. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/flac.h')
-rw-r--r--libavcodec/flac.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/flac.h b/libavcodec/flac.h
index fd899ef72c..f118dbbff3 100644
--- a/libavcodec/flac.h
+++ b/libavcodec/flac.h
@@ -27,7 +27,7 @@
#ifndef AVCODEC_FLAC_H
#define AVCODEC_FLAC_H
-#include "bytestream.h"
+#include "libavutil/intreadwrite.h"
#define FLAC_STREAMINFO_SIZE 34
#define FLAC_MAX_CHANNELS 8
@@ -63,13 +63,13 @@ enum {
static av_always_inline void flac_parse_block_header(const uint8_t *block_header,
int *last, int *type, int *size)
{
- int tmp = bytestream_get_byte(&block_header);
+ int tmp = *block_header;
if (last)
*last = tmp & 0x80;
if (type)
*type = tmp & 0x7F;
if (size)
- *size = bytestream_get_be24(&block_header);
+ *size = AV_RB24(block_header + 1);
}
#endif /* AVCODEC_FLAC_H */