Revision 90ed2776 libavformat/aviobuf.c

View differences:

libavformat/aviobuf.c
87 87
    return ffio_init_context(s, buffer, buffer_size, write_flag, opaque,
88 88
                                read_packet, write_packet, seek);
89 89
}
90
AVIOContext *av_alloc_put_byte(
91
                  unsigned char *buffer,
92
                  int buffer_size,
93
                  int write_flag,
94
                  void *opaque,
95
                  int (*read_packet)(void *opaque, uint8_t *buf, int buf_size),
96
                  int (*write_packet)(void *opaque, uint8_t *buf, int buf_size),
97
                  int64_t (*seek)(void *opaque, int64_t offset, int whence))
98
{
99
    return avio_alloc_context(buffer, buffer_size, write_flag, opaque,
100
                              read_packet, write_packet, seek);
101
}
90 102
#endif
91 103

  
92
AVIOContext *av_alloc_put_byte(
104
AVIOContext *avio_alloc_context(
93 105
                  unsigned char *buffer,
94 106
                  int buffer_size,
95 107
                  int write_flag,

Also available in: Unified diff