Browse Source

avcodec/bsf: simplify the code

Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
Signed-off-by: Marton Balint <cus@passwd.hu>
tags/n4.3
Limin Wang Marton Balint 5 years ago
parent
commit
56b9130fff
1 changed files with 1 additions and 5 deletions
  1. +1
    -5
      libavcodec/bsf.c

+ 1
- 5
libavcodec/bsf.c View File

@@ -533,11 +533,7 @@ int av_bsf_list_parse_str(const char *str, AVBSFContext **bsf_lst)
goto end;
}

while (1) {
bsf_str = av_strtok(buf, ",", &saveptr);
if (!bsf_str)
break;

while (bsf_str = av_strtok(buf, ",", &saveptr)) {
ret = bsf_parse_single(bsf_str, lst);
if (ret < 0)
goto end;


Loading…
Cancel
Save