aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/bsf.c
diff options
context:
space:
mode:
authorLimin Wang <lance.lmwang@gmail.com>2020-04-18 12:17:16 +0800
committerMarton Balint <cus@passwd.hu>2020-04-25 20:39:25 +0200
commit56b9130fff1ab71f166995bda7583a83e86d2467 (patch)
treebf041e2665c0a6380d8b9729d4d7212be3fffdd6 /libavcodec/bsf.c
parent35bcbfd6da59ecb5288a6a823be731b4db30b365 (diff)
downloadffmpeg-56b9130fff1ab71f166995bda7583a83e86d2467.tar.gz
avcodec/bsf: simplify the code
Signed-off-by: Limin Wang <lance.lmwang@gmail.com> Signed-off-by: Marton Balint <cus@passwd.hu>
Diffstat (limited to 'libavcodec/bsf.c')
-rw-r--r--libavcodec/bsf.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/libavcodec/bsf.c b/libavcodec/bsf.c
index 68fee82e0d..d3a9db57f7 100644
--- a/libavcodec/bsf.c
+++ b/libavcodec/bsf.c
@@ -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;