27 #define GSM_BLOCK_SIZE 33
28 #define GSM_BLOCK_SAMPLES 160
29 #define GSM_SAMPLE_RATE 8000
48 return ret < 0 ? ret :
AVERROR(EIO);
int64_t pos
byte position in stream, -1 if unknown
#define AV_OPT_FLAG_DECODING_PARAM
a generic parameter which can be set by the user for demuxing or decoding
const char * class_name
The name of the class; usually it is the same name as the context structure type to which the AVClass...
static int read_header(FFV1Context *f)
void av_free_packet(AVPacket *pkt)
Free a packet.
static av_always_inline int64_t avio_tell(AVIOContext *s)
ftell() equivalent for AVIOContext.
int duration
Duration of this packet in AVStream->time_base units, 0 if unknown.
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
AVStream * avformat_new_stream(AVFormatContext *s, AVCodec *c)
Add a new stream to a media file.
AVCodecContext * codec
codec context
int bit_rate
the average bitrate
as in Berlin toast format
enum AVMediaType codec_type
int sample_rate
samples per second
static int read_packet(AVFormatContext *ctx, AVPacket *pkt)
Describe the class of an AVClass context structure.
struct AVInputFormat * iformat
Can only be iformat or oformat, not both at the same time.
int channels
number of audio channels
void * priv_data
Format private data.
int64_t pts
Presentation timestamp in AVStream->time_base units; the time at which the decompressed packet will b...