diff mbox series

[FFmpeg-devel,v2,3/3] lavc/avs2_parser.c, lavf/avs2dec.c: fix code style

Message ID 20200820091107.1035-3-hwrenx@126.com
State New
Headers show
Series [FFmpeg-devel,v2,1/3] lavc/avs2_parser.c, lavf/davs2.c: Add AVS2_* prefix
Related show

Checks

Context Check Description
andriy/default pending
andriy/make success Make finished
andriy/make_fate success Make fate finished

Commit Message

hwren Aug. 20, 2020, 9:11 a.m. UTC
From: hwren <hwrenx@126.com>

Signed-off-by: hwren <hwrenx@126.com>
---
 libavcodec/avs2_parser.c | 6 +++---
 libavformat/avs2dec.c    | 6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)
diff mbox series

Patch

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;
diff --git a/libavformat/avs2dec.c b/libavformat/avs2dec.c
index f8337ea500..51908d2b63 100644
--- a/libavformat/avs2dec.c
+++ b/libavformat/avs2dec.c
@@ -33,9 +33,9 @@ 
 
 static int avs2_probe(const AVProbeData *p)
 {
-    uint32_t code= -1, hds=0, pic=0, seq=0;
-    uint8_t state=0;
-    const uint8_t *ptr = p->buf, *end = p->buf + p->buf_size, *sqb=0;
+    uint32_t code = -1, hds = 0, pic = 0, seq = 0;
+    uint8_t state = 0;
+    const uint8_t *ptr = p->buf, *end = p->buf + p->buf_size, *sqb = 0;
     if (AV_RB32(p->buf) != 0x1B0){
         return 0;
     }