On 04/12/2012 09:31 PM, Alex Converse wrote:

> ---
>  libavcodec/faxcompr.c |   15 ++++++++++-----
>  libavcodec/tiff.c     |    2 +-
>  2 files changed, 11 insertions(+), 6 deletions(-)
[...]
> diff --git a/libavcodec/tiff.c b/libavcodec/tiff.c
> index cafd98b..cd00da4 100644
> --- a/libavcodec/tiff.c
> +++ b/libavcodec/tiff.c
> @@ -137,7 +137,7 @@ static int tiff_unpack_strip(TiffContext *s, uint8_t* 
> dst, int stride, const uin
>      }
>      if(s->compr == TIFF_CCITT_RLE || s->compr == TIFF_G3 || s->compr == 
> TIFF_G4){
>          int i, ret = 0;
> -        uint8_t *src2 = av_malloc(size + FF_INPUT_BUFFER_PADDING_SIZE);
> +        uint8_t *src2 = av_malloc((unsigned)size + 
> FF_INPUT_BUFFER_PADDING_SIZE);
>  
>          if(!src2 || (unsigned)size + FF_INPUT_BUFFER_PADDING_SIZE < 
> (unsigned)size){
>              av_log(s->avctx, AV_LOG_ERROR, "Error allocating temporary 
> buffer\n");


This one confused me... is it supposed to be part of patch 2/3 instead?

-Justin
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to