diff mbox

[FFmpeg-devel,v1,1/6] avcodec/magicyuv: cosmetics

Message ID 20191011061444.4988-1-lance.lmwang@gmail.com
State New
Headers show

Commit Message

Lance Wang Oct. 11, 2019, 6:14 a.m. UTC
From: Limin Wang <lance.lmwang@gmail.com>

Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
---
 libavcodec/magicyuv.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Paul B Mahol Oct. 11, 2019, 11:46 a.m. UTC | #1
second part is pointless

On 10/11/19, lance.lmwang@gmail.com <lance.lmwang@gmail.com> wrote:
> From: Limin Wang <lance.lmwang@gmail.com>
>
> Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
> ---
>  libavcodec/magicyuv.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/libavcodec/magicyuv.c b/libavcodec/magicyuv.c
> index 21a32785bc..0b1ac7345a 100644
> --- a/libavcodec/magicyuv.c
> +++ b/libavcodec/magicyuv.c
> @@ -620,7 +620,7 @@ static int magy_decode_frame(AVCodecContext *avctx, void
> *data,
>      }
>      s->max = 1 << s->bps;
>      s->magy_decode_slice = s->bps == 8 ? magy_decode_slice :
> magy_decode_slice10;
> -    if ( s->bps == 8)
> +    if (s->bps == 8)
>          s->huff_build = huff_build;
>      else
>          s->huff_build = s->bps == 10 ? huff_build10 : huff_build12;
> @@ -640,7 +640,7 @@ static int magy_decode_frame(AVCodecContext *avctx, void
> *data,
>
>      slice_width = bytestream2_get_le32(&gbyte);
>      if (slice_width != avctx->coded_width) {
> -        avpriv_request_sample(avctx, "Slice width %"PRIu32, slice_width);
> +        avpriv_request_sample(avctx, "Slice width %"PRIu32"", slice_width);
>          return AVERROR_PATCHWELCOME;
>      }
>      s->slice_height = bytestream2_get_le32(&gbyte);
> --
> 2.21.0
>
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>
> To unsubscribe, visit link above, or email
> ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
diff mbox

Patch

diff --git a/libavcodec/magicyuv.c b/libavcodec/magicyuv.c
index 21a32785bc..0b1ac7345a 100644
--- a/libavcodec/magicyuv.c
+++ b/libavcodec/magicyuv.c
@@ -620,7 +620,7 @@  static int magy_decode_frame(AVCodecContext *avctx, void *data,
     }
     s->max = 1 << s->bps;
     s->magy_decode_slice = s->bps == 8 ? magy_decode_slice : magy_decode_slice10;
-    if ( s->bps == 8)
+    if (s->bps == 8)
         s->huff_build = huff_build;
     else
         s->huff_build = s->bps == 10 ? huff_build10 : huff_build12;
@@ -640,7 +640,7 @@  static int magy_decode_frame(AVCodecContext *avctx, void *data,
 
     slice_width = bytestream2_get_le32(&gbyte);
     if (slice_width != avctx->coded_width) {
-        avpriv_request_sample(avctx, "Slice width %"PRIu32, slice_width);
+        avpriv_request_sample(avctx, "Slice width %"PRIu32"", slice_width);
         return AVERROR_PATCHWELCOME;
     }
     s->slice_height = bytestream2_get_le32(&gbyte);