Lines Matching refs:bsf
69 static int h264_redundant_pps_filter(AVBSFContext *bsf, AVPacket *pkt) in h264_redundant_pps_filter() argument
71 H264RedundantPPSContext *ctx = bsf->priv_data; in h264_redundant_pps_filter()
76 err = ff_bsf_get_packet_ref(bsf, pkt); in h264_redundant_pps_filter()
95 av_log(bsf, AV_LOG_VERBOSE, "Deleting redundant PPS " in h264_redundant_pps_filter()
122 static int h264_redundant_pps_init(AVBSFContext *bsf) in h264_redundant_pps_init() argument
124 H264RedundantPPSContext *ctx = bsf->priv_data; in h264_redundant_pps_init()
128 err = ff_cbs_init(&ctx->input, AV_CODEC_ID_H264, bsf); in h264_redundant_pps_init()
132 err = ff_cbs_init(&ctx->output, AV_CODEC_ID_H264, bsf); in h264_redundant_pps_init()
138 if (bsf->par_in->extradata) { in h264_redundant_pps_init()
139 err = ff_cbs_read_extradata(ctx->input, au, bsf->par_in); in h264_redundant_pps_init()
141 av_log(bsf, AV_LOG_ERROR, "Failed to read extradata.\n"); in h264_redundant_pps_init()
154 err = ff_cbs_write_extradata(ctx->output, bsf->par_out, au); in h264_redundant_pps_init()
156 av_log(bsf, AV_LOG_ERROR, "Failed to write extradata.\n"); in h264_redundant_pps_init()
167 static void h264_redundant_pps_flush(AVBSFContext *bsf) in h264_redundant_pps_flush() argument
169 H264RedundantPPSContext *ctx = bsf->priv_data; in h264_redundant_pps_flush()
173 static void h264_redundant_pps_close(AVBSFContext *bsf) in h264_redundant_pps_close() argument
175 H264RedundantPPSContext *ctx = bsf->priv_data; in h264_redundant_pps_close()