[FFmpeg-cvslog] avcodec/bsf: simplify the code
Limin Wang
git at videolan.org
Sat Apr 25 21:44:53 EEST 2020
ffmpeg | branch: master | Limin Wang <lance.lmwang at gmail.com> | Sat Apr 18 12:17:16 2020 +0800| [56b9130fff1ab71f166995bda7583a83e86d2467] | committer: Marton Balint
avcodec/bsf: simplify the code
Signed-off-by: Limin Wang <lance.lmwang at gmail.com>
Signed-off-by: Marton Balint <cus at passwd.hu>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=56b9130fff1ab71f166995bda7583a83e86d2467
---
libavcodec/bsf.c | 6 +-----
1 file changed, 1 insertion(+), 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;
More information about the ffmpeg-cvslog
mailing list