ffmpeg | branch: master | Limin Wang <lance.lmw...@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.lmw...@gmail.com>
Signed-off-by: Marton Balint <c...@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;

_______________________________________________
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

To unsubscribe, visit link above, or email
ffmpeg-cvslog-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to