Unified · Split
| @@ -533,11 +533,7 @@ int av_bsf_list_parse_str(const char *str, AVBSFContext **bsf_lst) · 532 unmodified lines | ||
| 533 | 533 | goto end; |
| 534 | 534 | } |
| 535 | 535 | |
| 536 | − while (1) { | |
| 537 | − bsf_str = av_strtok(buf, ",", &saveptr); | |
| 538 | − if (!bsf_str) | |
| 539 | − break; | |
| 540 | − | |
| 536 | + while (bsf_str = av_strtok(buf, ",", &saveptr)) { | |
| 541 | 537 | ret = bsf_parse_single(bsf_str, lst); |
| 542 | 538 | if (ret < 0) |
| 543 | 539 | goto end; |