50 if (
ctx->par_in->extradata &&
53 (in->
size <
ctx->par_in->extradata_size ||
54 memcmp(in->
data,
ctx->par_in->extradata,
ctx->par_in->extradata_size))) {
55 if (in->
size >= INT_MAX -
ctx->par_in->extradata_size) {
70 memcpy(
out->data,
ctx->par_in->extradata,
ctx->par_in->extradata_size);
71 memcpy(
out->data +
ctx->par_in->extradata_size, in->
data, in->
size);
82#define OFFSET(x) offsetof(DumpExtradataContext, x)
83#define FLAGS (AV_OPT_FLAG_VIDEO_PARAM|AV_OPT_FLAG_BSF_PARAM)
95 .class_name =
"dump_extradata bsf",
102 .p.name =
"dump_extra",
static AVFormatContext * ctx
const FFBitStreamFilter ff_dump_extradata_bsf
int ff_bsf_get_packet_ref(AVBSFContext *ctx, AVPacket *pkt)
Called by bitstream filters to get packet for filtering.
@ AV_OPT_TYPE_CONST
Special option type for declaring named constants.
@ AV_OPT_TYPE_INT
Underlying C type is int.
void av_packet_unref(AVPacket *pkt)
Wipe the packet.
#define AV_PKT_FLAG_KEY
The packet contains a keyframe.
void av_packet_move_ref(AVPacket *dst, AVPacket *src)
Move every field in src to dst and reset src.
int av_packet_copy_props(AVPacket *dst, const AVPacket *src)
Copy only "properties" fields from src to dst.
int av_new_packet(AVPacket *pkt, int size)
Allocate the payload of a packet and initialize its fields with default values.
const char * av_default_item_name(void *ptr)
Return the context name.
#define LIBAVUTIL_VERSION_INT
The bitstream filter state.
Describe the class of an AVClass context structure.
This structure stores compressed data.
int flags
A combination of AV_PKT_FLAG values.
void(* filter)(uint8_t *src, ptrdiff_t stride, int qscale)