46 ctx->cbc->trace_enable = 1;
48 ctx->cbc->trace_context =
ctx->cbc;
49 ctx->cbc->trace_read_callback = ff_cbs_trace_read_log;
56 err = ff_cbs_read_extradata(
ctx->cbc, frag, bsf->
par_in);
58 ff_cbs_fragment_reset(frag);
68 ff_cbs_fragment_free(&
ctx->fragment);
69 ff_cbs_close(&
ctx->cbc);
76 char tmp[256] = { 0 };
96 if (
pkt->duration > 0)
104 err = ff_cbs_read_packet_side_data(
ctx->cbc, frag,
pkt);
105 ff_cbs_fragment_reset(frag);
114 err = ff_cbs_read_packet(
ctx->cbc, frag,
pkt);
116 ff_cbs_fragment_reset(frag);
124 .p.name =
"trace_headers",
static AVFormatContext * ctx
static av_cold void close(AVCodecParserContext *s)
size_t av_strlcatf(char *dst, size_t size, const char *fmt,...)
Convenience header that includes libavutil's core.
const FFBitStreamFilter ff_trace_headers_bsf
int ff_bsf_get_packet_ref(AVBSFContext *ctx, AVPacket *pkt)
Called by bitstream filters to get packet for filtering.
enum AVCodecID ff_cbs_all_codec_ids[]
Table of all supported codec IDs.
int(* init)(AVBSFContext *ctx)
@ AV_PKT_DATA_NEW_EXTRADATA
The AV_PKT_DATA_NEW_EXTRADATA is used to notify the codec or the format that the extradata buffer was...
#define AV_PKT_FLAG_CORRUPT
The packet content is corrupted.
void av_packet_unref(AVPacket *pkt)
Wipe the packet.
#define AV_PKT_FLAG_KEY
The packet contains a keyframe.
uint8_t * av_packet_get_side_data(const AVPacket *pkt, enum AVPacketSideDataType type, size_t *size)
Get side information from packet.
#define AV_LOG_INFO
Standard information.
size_t av_strlcat(char *dst, const char *src, size_t size)
Append the string src to the string dst, but to a total length of no more than size - 1 bytes,...
#define AV_NOPTS_VALUE
Undefined timestamp value.
The bitstream filter state.
void * priv_data
Opaque filter-specific private data.
AVCodecParameters * par_in
Parameters of the input stream.
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).
This structure stores compressed data.
Context structure for coded bitstream operations.
Coded bitstream fragment structure, combining one or more units.
void(* filter)(uint8_t *src, ptrdiff_t stride, int qscale)