* License along with FFmpeg; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#ifndef FFMPEG_AVIO_H
-#define FFMPEG_AVIO_H
+#ifndef AVFORMAT_AVIO_H
+#define AVFORMAT_AVIO_H
#include <stdint.h>
typedef int URLInterruptCB(void);
+int url_open_protocol (URLContext **puc, struct URLProtocol *up,
+ const char *filename, int flags);
int url_open(URLContext **h, const char *filename, int flags);
int url_read(URLContext *h, unsigned char *buf, int size);
int url_write(URLContext *h, unsigned char *buf, int size);
/**
* Reads size bytes from ByteIOContext into buf.
- * This reads at most 1 packet. If that's not enough fewer bytes will be
+ * This reads at most 1 packet. If that is not enough fewer bytes will be
* returned.
* @returns number of bytes read or AVERROR
*/
int udp_get_local_port(URLContext *h);
int udp_get_file_handle(URLContext *h);
-#endif /* FFMPEG_AVIO_H */
+#endif /* AVFORMAT_AVIO_H */