[FFmpeg-devel] [PATCH 15/15] vfwcap: Fix some warnings about incompatible pointer type

Michael Niedermayer michaelni at gmx.at
Fri Jul 27 19:11:59 CEST 2012


On Fri, Jul 27, 2012 at 05:23:25AM -0300, jamal wrote:
> ---
>  libavdevice/vfwcap.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/libavdevice/vfwcap.c b/libavdevice/vfwcap.c
> index d8e32ce..6a4cea0 100644
> --- a/libavdevice/vfwcap.c
> +++ b/libavdevice/vfwcap.c
> @@ -322,7 +322,7 @@ static int vfw_read_header(AVFormatContext *s)
>      }
>  
>      if (ctx->video_size) {
> -        ret = av_parse_video_size(&bi->bmiHeader.biWidth, &bi->bmiHeader.biHeight, ctx->video_size);
> +        ret = av_parse_video_size((int *)&bi->bmiHeader.biWidth, (int *)&bi->bmiHeader.biHeight, ctx->video_size);

what are the types of biWidth and biHeight ?
if they arent int then the cast is likely wrong

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

It is dangerous to be right in matters on which the established authorities
are wrong. -- Voltaire
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20120727/ae5c81aa/attachment.asc>


More information about the ffmpeg-devel mailing list