34 (p->buf[4] == 1 || p->buf[4] == 2))
36 if (
AV_RL32(p->buf) ==
MKBETAG(
'U',
'E',
'B',
'A') && p->buf[4] == 1 &&
37 (p->buf[5] == 1 || p->buf[5] == 2) &&
AV_RL32(p->buf + 8))
94 int discard_padding = 0;
107 if (binka->
is_ueba && pkt_size == 0xFFFF) {
128 if (discard_padding) {
132 AV_WL32(side_data + 4, discard_padding);
136 pkt->stream_index = 0;
146 .p.extensions =
"binka",
int avio_feof(AVIOContext *s)
Similar to feof() but also returns nonzero on read errors.
static av_always_inline int64_t avio_tell(AVIOContext *s)
ftell() equivalent for AVIOContext.
unsigned int avio_rl16(AVIOContext *s)
int64_t avio_skip(AVIOContext *s, int64_t offset)
Skip given number of bytes forward.
unsigned int avio_rl32(AVIOContext *s)
int avio_r8(AVIOContext *s)
int ffio_read_size(AVIOContext *s, unsigned char *buf, int size)
Read size bytes from AVIOContext into buf.
static int read_packet(void *opaque, uint8_t *buf, int buf_size)
static int binka_read_packet(AVFormatContext *s, AVPacket *pkt)
static int binka_probe(const AVProbeData *p)
static int binka_read_header(AVFormatContext *s)
static int read_probe(const AVProbeData *p)
static int read_header(FFV1Context *f, RangeCoder *c)
@ AV_CODEC_ID_BINKAUDIO_DCT
@ AV_PKT_DATA_SKIP_SAMPLES
Recommends skipping the specified number of samples.
uint8_t * av_packet_new_side_data(AVPacket *pkt, enum AVPacketSideDataType type, size_t size)
Allocate new information of a packet.
int av_new_packet(AVPacket *pkt, int size)
Allocate the payload of a packet and initialize its fields with default values.
AVStream * avformat_new_stream(AVFormatContext *s, const struct AVCodec *c)
Add a new stream to a media file.
#define AVERROR_INVALIDDATA
Invalid data found when processing input.
#define AVERROR_EOF
End of file.
int av_get_audio_frame_duration2(AVCodecParameters *par, int frame_bytes)
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
#define MKBETAG(a, b, c, d)
int nb_channels
Number of channels in this layout.
AVChannelLayout ch_layout
The channel layout and number of channels.
enum AVMediaType codec_type
General type of the encoded data.
uint8_t * extradata
Extra binary data needed for initializing the decoder, codec-dependent.
enum AVCodecID codec_id
Specific type of the encoded data (the codec used).
int sample_rate
The number of audio samples per second.
This structure stores compressed data.
This structure contains the data a format has to probe a file.
AVCodecParameters * codecpar
Codec parameters associated with this stream.
int64_t duration
Decoding: duration of the stream, in stream time base.
static int frame_samples(const SyncQueue *sq, SyncQueueFrame frame)