Lines Matching refs:bsf
69 static int h264_redundant_pps_filter(AVBSFContext *bsf, AVPacket *out) in h264_redundant_pps_filter() argument
71 H264RedundantPPSContext *ctx = bsf->priv_data; in h264_redundant_pps_filter()
77 err = ff_bsf_get_packet(bsf, &in); in h264_redundant_pps_filter()
94 av_log(bsf, AV_LOG_VERBOSE, "Deleting redundant PPS " in h264_redundant_pps_filter()
121 static int h264_redundant_pps_init(AVBSFContext *bsf) in h264_redundant_pps_init() argument
123 H264RedundantPPSContext *ctx = bsf->priv_data; in h264_redundant_pps_init()
127 err = ff_cbs_init(&ctx->input, AV_CODEC_ID_H264, bsf); in h264_redundant_pps_init()
131 err = ff_cbs_init(&ctx->output, AV_CODEC_ID_H264, bsf); in h264_redundant_pps_init()
137 if (bsf->par_in->extradata) { in h264_redundant_pps_init()
138 err = ff_cbs_read_extradata(ctx->input, au, bsf->par_in); in h264_redundant_pps_init()
140 av_log(bsf, AV_LOG_ERROR, "Failed to read extradata.\n"); in h264_redundant_pps_init()
150 err = ff_cbs_write_extradata(ctx->output, bsf->par_out, au); in h264_redundant_pps_init()
152 av_log(bsf, AV_LOG_ERROR, "Failed to write extradata.\n"); in h264_redundant_pps_init()
162 static void h264_redundant_pps_flush(AVBSFContext *bsf) in h264_redundant_pps_flush() argument
164 H264RedundantPPSContext *ctx = bsf->priv_data; in h264_redundant_pps_flush()
168 static void h264_redundant_pps_close(AVBSFContext *bsf) in h264_redundant_pps_close() argument
170 H264RedundantPPSContext *ctx = bsf->priv_data; in h264_redundant_pps_close()