22 #include "libavutil/channel_layout.h"
23 #include "libavutil/mathematics.h"
24 #include "libavutil/opt.h"
28 #define GSM_BLOCK_SIZE 33
29 #define GSM_BLOCK_SAMPLES 160
30 #define GSM_SAMPLE_RATE 8000
49 return ret < 0 ? ret :
AVERROR(EIO);
99 .priv_class = &gsm_class,
void av_free_packet(AVPacket *pkt)
Free a packet.
#define LIBAVUTIL_VERSION_INT
int64_t pos
byte position in stream, -1 if unknown
AVCodecContext * codec
Codec context associated with this stream.
const char * av_default_item_name(void *ctx)
Return the context name.
const char * class_name
The name of the class; usually it is the same name as the context structure type to which the AVClass...
AVStream * avformat_new_stream(AVFormatContext *s, const AVCodec *c)
Add a new stream to a media file.
int duration
Duration of this packet in AVStream->time_base units, 0 if unknown.
const OptionDef options[]
void * priv_data
Format private data.
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
struct AVInputFormat * iformat
Can only be iformat or oformat, not both at the same time.
uint64_t channel_layout
Audio channel layout.
int bit_rate
the average bitrate
static int read_header(FFV1Context *f)
enum AVMediaType codec_type
int sample_rate
samples per second
AVIOContext * pb
I/O context.
static int read_packet(AVFormatContext *ctx, AVPacket *pkt)
Describe the class of an AVClass context structure.
#define AV_OPT_FLAG_DECODING_PARAM
a generic parameter which can be set by the user for demuxing or decoding
as in Berlin toast format
int channels
number of audio channels
#define AV_CH_LAYOUT_MONO
This structure stores compressed data.
int64_t pts
Presentation timestamp in AVStream->time_base units; the time at which the decompressed packet will b...