ffmpeg | branch: master | hwren <[email protected]> | Thu Aug 20 14:58:52 2020 
+0800| [de0a5558984e69877e516bfcc1b4e2cb9a7e9bbc] | committer: hwren

lavc/avs2_parser.c: optimize code style

Signed-off-by: hwren <[email protected]>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=de0a5558984e69877e516bfcc1b4e2cb9a7e9bbc
---

 libavcodec/avs2_parser.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/libavcodec/avs2_parser.c b/libavcodec/avs2_parser.c
index 02af08f079..54f687142f 100644
--- a/libavcodec/avs2_parser.c
+++ b/libavcodec/avs2_parser.c
@@ -34,9 +34,9 @@ static int avs2_find_frame_end(ParseContext *pc, const 
uint8_t *buf, int buf_siz
 
     if (!pic_found) {
         for (; cur < buf_size; ++cur) {
-            state = (state<<8) | buf[cur];
+            state = (state << 8) | buf[cur];
             if (AVS2_ISUNIT(buf[cur])){
-                ++cur;
+                cur++;
                 pic_found = 1;
                 break;
             }
@@ -46,7 +46,7 @@ static int avs2_find_frame_end(ParseContext *pc, const 
uint8_t *buf, int buf_siz
     if (pic_found) {
         if (!buf_size)
             return END_NOT_FOUND;
-        for (; cur < buf_size; ++cur) {
+        for (; cur < buf_size; cur++) {
             state = (state << 8) | buf[cur];
             if ((state & 0xFFFFFF00) == 0x100 && state > 
AVS2_SLICE_MAX_START_CODE) {
                 pc->frame_start_found = 0;

_______________________________________________
ffmpeg-cvslog mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".

Reply via email to