60 int buffersrc_empty = 0;
79 }
else if (ret ==
AVERROR(EAGAIN)) {
96 s->warning_limit = 100;
116 "%d buffers queued in %s, something may be wrong.\n",
129 return ctx->inputs[0]->time_base;
135 return ctx->inputs[0]->par;
142 .p.priv_class = &sink_class,
simple assert() macros that are a bit more flexible than ISO C assert().
#define av_assert0(cond)
assert() equivalent, that is always enabled.
const FFBitStreamFilter ff_sink_bsf
int ff_bsf_inlink_acknowledge_status(AVBitStreamFilterLink *link, int *rstatus, int64_t *rpts)
int ff_bsf_inlink_consume_packet(AVBitStreamFilterLink *link, AVPacket **rpkt)
const AVBitStreamFilterPad ff_default_bsf_pad[1]
void ff_bsf_inlink_request_packet(AVBitStreamFilterLink *link)
static BitStreamFilterLinkInternal * ff_link_internal(AVBitStreamFilterLink *link)
int ff_bsf_graph_run_once(AVBitStreamFilterGraph *graph)
Run one round of processing on a filter graph.
static av_always_inline const FFBitStreamFilter * ff_bsf(const AVBitStreamFilter *bsf)
#define flags(name, subs,...)
size_t av_container_fifo_can_read(const AVContainerFifo *cf)
int(* init)(AVBSFContext *ctx)
int attribute_align_arg av_bsf_sink_get_packet(AVBitStreamFilterContext *ctx, AVPacket *pkt, int flags)
Get a packet with filtered data from sink and put it in packet.
const AVCodecParameters * av_bsf_sink_get_parameters(const AVBitStreamFilterContext *ctx)
AVRational av_bsf_sink_get_time_base(const AVBitStreamFilterContext *ctx)
@ AV_BSF_SINK_FLAG_PEEK
Tell av_buffersink_get_buffer_ref() to read video/samples buffer reference, but not remove it from th...
@ AV_BSF_SINK_FLAG_NO_REQUEST
Tell av_bsf_sink_get_packet() not to request a packet from its input.
void av_packet_free(AVPacket **pkt)
Free the packet, if the packet is reference counted, it will be unreferenced first.
void av_packet_move_ref(AVPacket *dst, AVPacket *src)
Move every field in src to dst and reset src.
int av_packet_ref(AVPacket *dst, const AVPacket *src)
Setup a new reference to the data described by a given packet.
#define AV_LOG_WARNING
Something somehow does not look correct.
static void * av_x_if_null(const void *p, const void *x)
Return x default pointer in case p is NULL.
static av_cold void uninit(AVBitStreamFilterContext *ctx)
static int activate(AVBitStreamFilterContext *ctx)
#define BSFILTER_INPUTS(array)
#define FFERROR_SOURCE_EMPTY
#define BSF_DEFINE_CLASS_EXT(name, desc, options)
#define attribute_align_arg
static void uninit(AVBitStreamFilterContext *ctx)
static int activate(AVBitStreamFilterContext *ctx)
static int return_or_keep_packet(BufferSinkContext *buf, AVPacket *out, AVPacket *in, int flags)
Link properties exposed to filter code, but not external callers.
Describe the class of an AVClass context structure.
This struct describes the properties of an encoded stream.
This structure stores compressed data.
Rational number (pair of numerator and denominator).
int packet_wanted_out
True if a packet is currently wanted on the output of this filter.
AVContainerFifo * fifo
Queue of packets waiting to be filtered.
int(* activate)(AVBitStreamFilterContext *ctx)
Filter activation function.
static AVFormatContext * ctx