diff mbox series

[FFmpeg-devel] avcodec/tests/snowenc: Fix mixed declaration and code

Message ID AS8P250MB074441814581DD761E81243D8F282@AS8P250MB0744.EURP250.PROD.OUTLOOK.COM
State Accepted
Commit 5f7eb4240a05ba03bce1146c603c5cb890f7c842
Headers show
Series [FFmpeg-devel] avcodec/tests/snowenc: Fix mixed declaration and code | expand

Checks

Context Check Description
yinshiyou/make_loongarch64 success Make finished
yinshiyou/make_fate_loongarch64 success Make fate finished
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

Andreas Rheinhardt March 15, 2024, 2:23 p.m. UTC
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
---
 libavcodec/tests/snowenc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Sean McGovern March 15, 2024, 2:27 p.m. UTC | #1
Hi,


On Fri, Mar 15, 2024, 10:24 Andreas Rheinhardt <
andreas.rheinhardt@outlook.com> wrote:

> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
> ---
>  libavcodec/tests/snowenc.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/libavcodec/tests/snowenc.c b/libavcodec/tests/snowenc.c
> index 37198cd4e3..3dad07d3a5 100644
> --- a/libavcodec/tests/snowenc.c
> +++ b/libavcodec/tests/snowenc.c
> @@ -35,9 +35,9 @@ int main(void){
>      SnowContext s;
>      int i;
>      AVLFG prng;
> +    int ret = 0;
>      s.spatial_decomposition_count=6;
>      s.spatial_decomposition_type=1;
> -    int ret = 0;
>
>      s.temp_dwt_buffer  = av_calloc(width, sizeof(*s.temp_dwt_buffer));
>      s.temp_idwt_buffer = av_calloc(width, sizeof(*s.temp_idwt_buffer));
> --
> 2.40.1
>
> _______________________________________________
> 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".
>

OK, looks good to me.

Thanks,
Sean McGovern

>
diff mbox series

Patch

diff --git a/libavcodec/tests/snowenc.c b/libavcodec/tests/snowenc.c
index 37198cd4e3..3dad07d3a5 100644
--- a/libavcodec/tests/snowenc.c
+++ b/libavcodec/tests/snowenc.c
@@ -35,9 +35,9 @@  int main(void){
     SnowContext s;
     int i;
     AVLFG prng;
+    int ret = 0;
     s.spatial_decomposition_count=6;
     s.spatial_decomposition_type=1;
-    int ret = 0;
 
     s.temp_dwt_buffer  = av_calloc(width, sizeof(*s.temp_dwt_buffer));
     s.temp_idwt_buffer = av_calloc(width, sizeof(*s.temp_idwt_buffer));