Re: [libav-devel] [PATCH 2/3] svq3: fix pointer type warning

2012-10-11 Thread Kostya Shishkov
On Thu, Oct 11, 2012 at 06:04:59PM +0100, Mans Rullgard wrote:
> Fixes:
> libavcodec/svq3.c:661:9: warning: passing argument 2 of 'svq3_decode_block' 
> from incompatible pointer type
> libavcodec/svq3.c:208:19: note: expected 'DCTELEM *' but argument is of type 
> 'DCTELEM (*)[32]'
> 
> Signed-off-by: Mans Rullgard 
> ---
>  libavcodec/svq3.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/libavcodec/svq3.c b/libavcodec/svq3.c
> index 6099e77..bc1a77a 100644
> --- a/libavcodec/svq3.c
> +++ b/libavcodec/svq3.c
> @@ -658,7 +658,7 @@ static int svq3_decode_mb(SVQ3Context *svq3, unsigned int 
> mb_type)
>  if (IS_INTRA16x16(mb_type)) {
>  AV_ZERO128(h->mb_luma_dc[0]+0);
>  AV_ZERO128(h->mb_luma_dc[0]+8);
> -if (svq3_decode_block(&s->gb, h->mb_luma_dc, 0, 1)){
> +if (svq3_decode_block(&s->gb, h->mb_luma_dc[0], 0, 1)){
>  av_log(h->s.avctx, AV_LOG_ERROR, "error while decoding intra 
> luma dc\n");
>  return -1;
>  }
> -- 

looks OK
___
libav-devel mailing list
libav-devel@libav.org
https://lists.libav.org/mailman/listinfo/libav-devel


[libav-devel] [PATCH 2/3] svq3: fix pointer type warning

2012-10-11 Thread Mans Rullgard
Fixes:
libavcodec/svq3.c:661:9: warning: passing argument 2 of 'svq3_decode_block' 
from incompatible pointer type
libavcodec/svq3.c:208:19: note: expected 'DCTELEM *' but argument is of type 
'DCTELEM (*)[32]'

Signed-off-by: Mans Rullgard 
---
 libavcodec/svq3.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/svq3.c b/libavcodec/svq3.c
index 6099e77..bc1a77a 100644
--- a/libavcodec/svq3.c
+++ b/libavcodec/svq3.c
@@ -658,7 +658,7 @@ static int svq3_decode_mb(SVQ3Context *svq3, unsigned int 
mb_type)
 if (IS_INTRA16x16(mb_type)) {
 AV_ZERO128(h->mb_luma_dc[0]+0);
 AV_ZERO128(h->mb_luma_dc[0]+8);
-if (svq3_decode_block(&s->gb, h->mb_luma_dc, 0, 1)){
+if (svq3_decode_block(&s->gb, h->mb_luma_dc[0], 0, 1)){
 av_log(h->s.avctx, AV_LOG_ERROR, "error while decoding intra luma 
dc\n");
 return -1;
 }
-- 
1.7.12

___
libav-devel mailing list
libav-devel@libav.org
https://lists.libav.org/mailman/listinfo/libav-devel