diff internal.h @ 6353:3f938b3a355a libavformat

Make hex_to_data a lavf internal function This is useful for other future RTP depacketizers
author mstorsjo
date Mon, 09 Aug 2010 10:05:33 +0000
parents 869753e625c4
children 054de75e4a49
line wrap: on
line diff
--- a/internal.h	Mon Aug 09 08:14:48 2010 +0000
+++ b/internal.h	Mon Aug 09 10:05:33 2010 +0000
@@ -53,6 +53,16 @@
 
 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);
 
 /**