116 return ret < 0 ? ret :
AVERROR(EIO);
134 .mime_type =
"audio/iLBC",
static const char mode30_header[]
#define AVERROR_INVALIDDATA
Invalid data found when processing input.
int64_t pos
byte position in stream, -1 if unknown
static int ilbc_read_header(AVFormatContext *s)
enum AVCodecID codec_id
Specific type of the encoded data (the codec used).
This struct describes the properties of an encoded stream.
static int ilbc_probe(AVProbeData *p)
int64_t duration
Duration of this packet in AVStream->time_base units, 0 if unknown.
AVStream * avformat_new_stream(AVFormatContext *s, const AVCodec *c)
Add a new stream to a media file.
AVStream ** streams
A list of all streams in the file.
AVInputFormat ff_ilbc_demuxer
static av_always_inline int64_t avio_tell(AVIOContext *s)
ftell() equivalent for AVIOContext.
static const uint8_t header[24]
void avio_write(AVIOContext *s, const unsigned char *buf, int size)
int avio_read(AVIOContext *s, unsigned char *buf, int size)
Read size bytes from AVIOContext into buf.
int64_t bit_rate
The average bitrate of the encoded data (in bits per second).
int av_new_packet(AVPacket *pkt, int size)
Allocate the payload of a packet and initialize its fields with default values.
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
static int ilbc_write_header(AVFormatContext *s)
enum AVMediaType codec_type
General type of the encoded data.
AVOutputFormat ff_ilbc_muxer
static int ilbc_read_packet(AVFormatContext *s, AVPacket *pkt)
unsigned char * buf
Buffer must have AVPROBE_PADDING_SIZE of extra allocated bytes filled with zero.
unsigned int nb_streams
Number of elements in AVFormatContext.streams.
int block_align
Audio only.
static int ilbc_write_packet(AVFormatContext *s, AVPacket *pkt)
int void avio_flush(AVIOContext *s)
Force flushing of buffered data.
AVIOContext * pb
I/O context.
void av_packet_unref(AVPacket *pkt)
Wipe the packet.
This structure contains the data a format has to probe a file.
int sample_rate
Audio only.
int64_t start_time
Decoding: pts of the first frame of the stream in presentation order, in stream time base...
static const char mode20_header[]
AVCodecParameters * codecpar
This structure stores compressed data.