[FFmpeg-cvslog] lavc: make avpriv_flac_parse_streaminfo() private on the next bump
Anton Khirnov
git at videolan.org
Thu Nov 6 14:09:20 CET 2014
ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Thu Aug 28 18:42:56 2014 +0000| [c070a8751597e3aa1b443e88464da785d8966b14] | committer: Anton Khirnov
lavc: make avpriv_flac_parse_streaminfo() private on the next bump
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c070a8751597e3aa1b443e88464da785d8966b14
---
libavcodec/flac.c | 10 +++++++++-
libavcodec/flac.h | 5 +++++
libavcodec/flacdec.c | 4 ++--
3 files changed, 16 insertions(+), 3 deletions(-)
diff --git a/libavcodec/flac.c b/libavcodec/flac.c
index ec0cb6f..3a234d2 100644
--- a/libavcodec/flac.c
+++ b/libavcodec/flac.c
@@ -201,7 +201,7 @@ void ff_flac_set_channel_layout(AVCodecContext *avctx)
avctx->channel_layout = 0;
}
-void avpriv_flac_parse_streaminfo(AVCodecContext *avctx, struct FLACStreaminfo *s,
+void ff_flac_parse_streaminfo(AVCodecContext *avctx, struct FLACStreaminfo *s,
const uint8_t *buffer)
{
GetBitContext gb;
@@ -236,3 +236,11 @@ void avpriv_flac_parse_streaminfo(AVCodecContext *avctx, struct FLACStreaminfo *
skip_bits_long(&gb, 64); /* md5 sum */
skip_bits_long(&gb, 64); /* md5 sum */
}
+
+#if LIBAVCODEC_VERSION_MAJOR < 57
+void avpriv_flac_parse_streaminfo(AVCodecContext *avctx, struct FLACStreaminfo *s,
+ const uint8_t *buffer)
+{
+ ff_flac_parse_streaminfo(avctx, s, buffer);
+}
+#endif
diff --git a/libavcodec/flac.h b/libavcodec/flac.h
index 9baa330..1b81774 100644
--- a/libavcodec/flac.h
+++ b/libavcodec/flac.h
@@ -96,8 +96,13 @@ typedef struct FLACFrameInfo {
* @param[out] s where parsed information is stored
* @param[in] buffer pointer to start of 34-byte streaminfo data
*/
+void ff_flac_parse_streaminfo(AVCodecContext *avctx, struct FLACStreaminfo *s,
+ const uint8_t *buffer);
+
+#if LIBAVCODEC_VERSION_MAJOR < 57
void avpriv_flac_parse_streaminfo(AVCodecContext *avctx, struct FLACStreaminfo *s,
const uint8_t *buffer);
+#endif
/**
* Validate the FLAC extradata.
diff --git a/libavcodec/flacdec.c b/libavcodec/flacdec.c
index a475309..cb72677 100644
--- a/libavcodec/flacdec.c
+++ b/libavcodec/flacdec.c
@@ -101,7 +101,7 @@ static av_cold int flac_decode_init(AVCodecContext *avctx)
return AVERROR_INVALIDDATA;
/* initialize based on the demuxer-supplied streamdata header */
- avpriv_flac_parse_streaminfo(avctx, (FLACStreaminfo *)s, streaminfo);
+ ff_flac_parse_streaminfo(avctx, (FLACStreaminfo *)s, streaminfo);
ret = allocate_buffers(s);
if (ret < 0)
return ret;
@@ -159,7 +159,7 @@ static int parse_streaminfo(FLACContext *s, const uint8_t *buf, int buf_size)
metadata_size != FLAC_STREAMINFO_SIZE) {
return AVERROR_INVALIDDATA;
}
- avpriv_flac_parse_streaminfo(s->avctx, (FLACStreaminfo *)s, &buf[8]);
+ ff_flac_parse_streaminfo(s->avctx, (FLACStreaminfo *)s, &buf[8]);
ret = allocate_buffers(s);
if (ret < 0)
return ret;
More information about the ffmpeg-cvslog
mailing list