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);
100 .priv_class = &
class,
int64_t pos
byte position in stream, -1 if unknown
enum AVCodecID codec_id
Specific type of the encoded data (the codec used).
const char * class_name
The name of the class; usually it is the same name as the context structure type to which the AVClass...
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.
static av_always_inline int64_t avio_tell(AVIOContext *s)
ftell() equivalent for AVIOContext.
uint64_t channel_layout
Audio only.
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
enum AVMediaType codec_type
General type of the encoded data.
int bit_rate
The average bitrate of the encoded data (in bits per second).
audio channel layout utility functions
static int read_header(FFV1Context *f)
AVIOContext * pb
I/O context.
void av_packet_unref(AVPacket *pkt)
Wipe the packet.
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
int sample_rate
Audio only.
struct AVInputFormat * iformat
The input container format.
as in Berlin toast format
void * priv_data
Format private data.
AVCodecParameters * codecpar
#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...