]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/flac.c
configure: Die if gas is unavailable under aarch64 as well as ARM
[ffmpeg] / libavcodec / flac.c
index e6a8ab837038876f20f56058e50d1615e6fdcd8c..cd1a6ab87de83218729c92dab687583f30765ae5 100644 (file)
@@ -237,14 +237,10 @@ void avpriv_flac_parse_streaminfo(AVCodecContext *avctx, struct FLACStreaminfo *
     skip_bits_long(&gb, 64); /* md5 sum */
 }
 
+#if LIBAVCODEC_VERSION_MAJOR < 56
 void avpriv_flac_parse_block_header(const uint8_t *block_header,
                                 int *last, int *type, int *size)
 {
-    int tmp = bytestream_get_byte(&block_header);
-    if (last)
-        *last = tmp & 0x80;
-    if (type)
-        *type = tmp & 0x7F;
-    if (size)
-        *size = bytestream_get_be24(&block_header);
+    flac_parse_block_header(block_header, last, type, size);
 }
+#endif