ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinha...@outlook.com> | 
Tue Mar 25 07:29:55 2025 +0100| [2f971c7fda171c59c1516bd6e9afdc9caf6f9e38] | 
committer: Andreas Rheinhardt

avcodec/ituh263dec: Fix indentation

Signed-off-by: Andreas Rheinhardt <andreas.rheinha...@outlook.com>

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

 libavcodec/ituh263dec.c | 29 ++++++++++++++---------------
 1 file changed, 14 insertions(+), 15 deletions(-)

diff --git a/libavcodec/ituh263dec.c b/libavcodec/ituh263dec.c
index 6c9c2583e3..d19bdc4dab 100644
--- a/libavcodec/ituh263dec.c
+++ b/libavcodec/ituh263dec.c
@@ -554,25 +554,24 @@ static int h263_decode_block(MpegEncContext * s, int16_t 
* block,
     } else if (s->mb_intra) {
         /* DC coef */
         if (CONFIG_RV10_DECODER && s->codec_id == AV_CODEC_ID_RV10) {
-          if (s->rv10_version == 3 && s->pict_type == AV_PICTURE_TYPE_I) {
-            int component, diff;
-            component = (n <= 3 ? 0 : n - 4 + 1);
-            level = s->last_dc[component];
-            if (s->rv10_first_dc_coded[component]) {
-                diff = ff_rv_decode_dc(s, n);
-                if (diff < 0)
-                    return -1;
-                level += diff;
-                level = level & 0xff; /* handle wrap round */
-                s->last_dc[component] = level;
+            if (s->rv10_version == 3 && s->pict_type == AV_PICTURE_TYPE_I) {
+                int component = (n <= 3 ? 0 : n - 4 + 1);
+                level = s->last_dc[component];
+                if (s->rv10_first_dc_coded[component]) {
+                    int diff = ff_rv_decode_dc(s, n);
+                    if (diff < 0)
+                        return -1;
+                    level += diff;
+                    level = level & 0xff; /* handle wrap round */
+                    s->last_dc[component] = level;
+                } else {
+                    s->rv10_first_dc_coded[component] = 1;
+                }
             } else {
-                s->rv10_first_dc_coded[component] = 1;
-            }
-          } else {
                 level = get_bits(&s->gb, 8);
                 if (level == 255)
                     level = 128;
-          }
+            }
         }else{
             level = get_bits(&s->gb, 8);
             if((level&0x7F) == 0){

_______________________________________________
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