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:
authorJames Almer <jamrial@gmail.com>2017-10-23 02:29:53 +0300
committerJames Almer <jamrial@gmail.com>2017-10-26 06:26:08 +0300
commit6bd665b7c5798803366b877903fa3bce7f129d05 (patch)
tree599450b1996076a58c703e17167c696ba3482d8b /libavcodec/tak.h
parent984b882b769cab6372454cf8d5cda7c554c5ee77 (diff)
avcodec/tak: remove GetBitContext usage from avpriv_tak_parse_streaminfo()
This prevents potential ABI issues with GetBitContext. Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/tak.h')
-rw-r--r--libavcodec/tak.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/libavcodec/tak.h b/libavcodec/tak.h
index 4fa1239093..dc45a8c070 100644
--- a/libavcodec/tak.h
+++ b/libavcodec/tak.h
@@ -143,10 +143,14 @@ int ff_tak_check_crc(const uint8_t *buf, unsigned int buf_size);
/**
* Parse the Streaminfo metadata block.
- * @param[in] gb pointer to GetBitContext
* @param[out] s storage for parsed information
+ * @param[in] buf input buffer
+ * @param[in] size size of input buffer in bytes
+ * @return non-zero on error, 0 if OK
*/
-void avpriv_tak_parse_streaminfo(GetBitContext *gb, TAKStreamInfo *s);
+int avpriv_tak_parse_streaminfo(TAKStreamInfo *s, const uint8_t *buf, int size);
+
+void ff_tak_parse_streaminfo(TAKStreamInfo *s, GetBitContext *gb);
/**
* Validate and decode a frame header.