Go to the documentation of this file.
29 VocDecContext *voc =
s->priv_data;
33 int size, tmp_codec=-1;
46 while (!voc->remaining_size) {
53 if (!voc->remaining_size) {
60 voc->remaining_size = filesize -
avio_tell(pb);
66 if (voc->remaining_size < 2) {
67 voc->remaining_size = 0;
80 voc->remaining_size -= 2;
93 voc->remaining_size = 0;
98 if (voc->remaining_size < 12) {
99 voc->remaining_size = 0;
111 voc->remaining_size -= 12;
117 max_size -= voc->remaining_size;
118 voc->remaining_size = 0;
128 if (tmp_codec >= 0) {
132 else if (par->
codec_id != tmp_codec)
147 size =
FFMIN(voc->remaining_size, max_size);
148 voc->remaining_size -=
size;
#define AV_LOG_WARNING
Something somehow does not look correct.
Filter the word “frame” indicates either a video frame or a group of audio as stored in an AVFrame structure Format for each input and each output the list of supported formats For video that means pixel format For audio that means channel sample they are references to shared objects When the negotiation mechanism computes the intersection of the formats supported at each end of a all references to both lists are replaced with a reference to the intersection And when a single format is eventually chosen for a link amongst the remaining all references to the list are updated That means that if a filter requires that its input and output have the same format amongst a supported all it has to do is use a reference to the same list of formats query_formats can leave some formats unset and return AVERROR(EAGAIN) to cause the negotiation mechanism toagain later. That can be used by filters with complex requirements to use the format negotiated on one link to set the formats supported on another. Frame references ownership and permissions
This struct describes the properties of an encoded stream.
#define AVERROR_EOF
End of file.
int64_t avio_size(AVIOContext *s)
Get the filesize.
int av_add_index_entry(AVStream *st, int64_t pos, int64_t timestamp, int size, int distance, int flags)
Add an index entry into a sorted list.
static av_always_inline int64_t avio_tell(AVIOContext *s)
ftell() equivalent for AVIOContext.
it s the only field you need to keep assuming you have a context There is some magic you don t need to care about around this just let it vf type
unsigned int avio_rl16(AVIOContext *s)
const AVCodecTag ff_voc_codec_tags[]
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
AVCodecParameters * codecpar
Codec parameters associated with this stream.
@ VOC_TYPE_VOICE_DATA_CONT
int sample_rate
Audio only.
int av_get_bits_per_sample(enum AVCodecID codec_id)
Return codec bits per sample.
unsigned int avio_rl32(AVIOContext *s)
#define AV_NOPTS_VALUE
Undefined timestamp value.
int64_t dts
Decompression timestamp in AVStream->time_base units; the time at which the packet is decompressed.
int avio_r8(AVIOContext *s)
int64_t pts
Presentation timestamp in AVStream->time_base units; the time at which the decompressed packet will b...
unsigned int avio_rl24(AVIOContext *s)
@ VOC_TYPE_NEW_VOICE_DATA
#define AVIO_SEEKABLE_NORMAL
Seeking works like for a local file.
int av_get_audio_frame_duration2(AVCodecParameters *par, int frame_bytes)
This function is the same as av_get_audio_frame_duration(), except it works with AVCodecParameters in...
int64_t avio_skip(AVIOContext *s, int64_t offset)
Skip given number of bytes forward.
int bits_per_coded_sample
The number of bits per sample in the codedwords.
enum AVCodecID codec_id
Specific type of the encoded data (the codec used).
This structure stores compressed data.
int ff_voc_get_packet(AVFormatContext *s, AVPacket *pkt, AVStream *st, int max_size)
int64_t bit_rate
The average bitrate of the encoded data (in bits per second).
#define AVERROR_INVALIDDATA
Invalid data found when processing input.