MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / bsf_list_init

Function bsf_list_init

libavcodec/bsf.c:283–310  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

281
282
283static int bsf_list_init(AVBSFContext *bsf)
284{
285 BSFListContext *lst = bsf->priv_data;
286 int ret, i;
287 const AVCodecParameters *cod_par = bsf->par_in;
288 AVRational tb = bsf->time_base_in;
289
290 for (i = 0; i < lst->nb_bsfs; ++i) {
291 ret = avcodec_parameters_copy(lst->bsfs[i]->par_in, cod_par);
292 if (ret < 0)
293 goto fail;
294
295 lst->bsfs[i]->time_base_in = tb;
296
297 ret = av_bsf_init(lst->bsfs[i]);
298 if (ret < 0)
299 goto fail;
300
301 cod_par = lst->bsfs[i]->par_out;
302 tb = lst->bsfs[i]->time_base_out;
303 }
304
305 bsf->time_base_out = tb;
306 ret = avcodec_parameters_copy(bsf->par_out, cod_par);
307
308fail:
309 return ret;
310}
311
312static int bsf_list_filter(AVBSFContext *bsf, AVPacket *out)
313{

Callers

nothing calls this directly

Calls 2

avcodec_parameters_copyFunction · 0.85
av_bsf_initFunction · 0.85

Tested by

no test coverage detected