Commit 56b9130f authored by Limin Wang's avatar Limin Wang Committed by Marton Balint

avcodec/bsf: simplify the code

Signed-off-by: 's avatarLimin Wang <lance.lmwang@gmail.com>
Signed-off-by: 's avatarMarton Balint <cus@passwd.hu>
parent 35bcbfd6
...@@ -533,11 +533,7 @@ int av_bsf_list_parse_str(const char *str, AVBSFContext **bsf_lst) ...@@ -533,11 +533,7 @@ int av_bsf_list_parse_str(const char *str, AVBSFContext **bsf_lst)
goto end; goto end;
} }
while (1) { while (bsf_str = av_strtok(buf, ",", &saveptr)) {
bsf_str = av_strtok(buf, ",", &saveptr);
if (!bsf_str)
break;
ret = bsf_parse_single(bsf_str, lst); ret = bsf_parse_single(bsf_str, lst);
if (ret < 0) if (ret < 0)
goto end; goto end;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment