diff options
author | Martin Storsjö <martin@martin.st> | 2010-08-09 10:05:33 +0000 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2010-08-09 10:05:33 +0000 |
commit | 311baee795009809daff8a0dd0b27225dcf819ae (patch) | |
tree | 79ea97f836fd4a61ec56bb00a52836a6d1eef033 /libavformat/internal.h | |
parent | f240ed18efd80abc6df0bdce13cf0ca708f283ae (diff) | |
download | ffmpeg-311baee795009809daff8a0dd0b27225dcf819ae.tar.gz |
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
Diffstat (limited to 'libavformat/internal.h')
-rw-r--r-- | libavformat/internal.h | 10 |
1 files changed, 10 insertions, 0 deletions
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); /** |