From 311baee795009809daff8a0dd0b27225dcf819ae Mon Sep 17 00:00:00 2001 From: Martin Storsjö Date: Mon, 9 Aug 2010 10:05:33 +0000 Subject: Make hex_to_data a lavf internal function This is useful for other future RTP depacketizers Originally committed as revision 24747 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/internal.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'libavformat/internal.h') diff --git a/libavformat/internal.h b/libavformat/internal.h index 232b40b253..6d3ec23767 100644 --- a/libavformat/internal.h +++ b/libavformat/internal.h @@ -53,6 +53,16 @@ const char *small_strptime(const char *p, const char *fmt, char *ff_data_to_hex(char *buf, const uint8_t *src, int size, int lowercase); +/** + * Parse a string of hexadecimal strings. Any space between the hexadecimal + * digits is ignored. + * + * @param data if non-null, the parsed data is written to this pointer + * @param p the string to parse + * @return the number of bytes written (or to be written, if data is null) + */ +int ff_hex_to_data(uint8_t *data, const char *p); + void ff_program_add_stream_index(AVFormatContext *ac, int progid, unsigned int idx); /** -- cgit v1.2.3