On Sat, Feb 14, 2015 at 10:24 AM, Luca Barbato <[email protected]> wrote:
> Avoid an unsigned underflow.
>
> Bug-Id: 1041122
> CC: [email protected]
> ---
>  libavformat/apetag.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/libavformat/apetag.c b/libavformat/apetag.c
> index bd8d0ed..4d65301 100644
> --- a/libavformat/apetag.c
> +++ b/libavformat/apetag.c
> @@ -40,7 +40,7 @@ static int ape_tag_read_field(AVFormatContext *s)
>  {
>      AVIOContext *pb = s->pb;
>      uint8_t key[1024], *value;
> -    uint32_t size, flags;
> +    int64_t size, flags;
>      int i, c;
>
>      size = avio_rl32(pb);  /* field size */

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

Reply via email to