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

Function av_bsf_list_parse_str

libavcodec/bsf.c:526–551  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

524}
525
526int av_bsf_list_parse_str(const char *str, AVBSFContext **bsf_lst)
527{
528 AVBSFList *lst;
529 int ret;
530
531 if (!str)
532 return av_bsf_get_null_filter(bsf_lst);
533
534 lst = av_bsf_list_alloc();
535 if (!lst)
536 return AVERROR(ENOMEM);
537
538 do {
539 char *bsf_str = av_get_token(&str, ",");
540 ret = bsf_parse_single(bsf_str, lst);
541 av_free(bsf_str);
542 if (ret < 0)
543 goto end;
544 } while (*str && *++str);
545
546 ret = av_bsf_list_finalize(&lst, bsf_lst);
547end:
548 if (ret < 0)
549 av_bsf_list_free(&lst);
550 return ret;
551}
552
553int av_bsf_get_null_filter(AVBSFContext **bsf)
554{

Callers 5

open_slaveFunction · 0.85
ost_addFunction · 0.85
ist_addFunction · 0.85
mediacodec_init_bsfFunction · 0.85
decode_bsfs_initFunction · 0.85

Calls 7

av_bsf_get_null_filterFunction · 0.85
av_bsf_list_allocFunction · 0.85
av_get_tokenFunction · 0.85
bsf_parse_singleFunction · 0.85
av_bsf_list_finalizeFunction · 0.85
av_bsf_list_freeFunction · 0.85
av_freeFunction · 0.50

Tested by

no test coverage detected