diff options
author | James Almer <jamrial@gmail.com> | 2017-10-22 20:29:53 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2017-10-26 00:26:08 -0300 |
commit | 6bd665b7c5798803366b877903fa3bce7f129d05 (patch) | |
tree | 599450b1996076a58c703e17167c696ba3482d8b /libavcodec/tak.h | |
parent | 984b882b769cab6372454cf8d5cda7c554c5ee77 (diff) | |
download | ffmpeg-6bd665b7c5798803366b877903fa3bce7f129d05.tar.gz |
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.h | 8 |
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. |