On Fri, 10 Apr 2015 23:40:30 +0530
Himangi Saraogi <[email protected]> wrote:
> ---
> libavcodec/faxcompr.c | 2 +-
> libavformat/ac3dec.c | 2 +-
> libavformat/mp3dec.c | 2 +-
> libavformat/rtmppkt.c | 3 ++-
> 4 files changed, 5 insertions(+), 4 deletions(-)
>
> diff --git a/libavcodec/faxcompr.c b/libavcodec/faxcompr.c
> index 4cbda3f..50d81cd 100644
> --- a/libavcodec/faxcompr.c
> +++ b/libavcodec/faxcompr.c
> @@ -260,7 +260,7 @@ static void put_line(uint8_t *dst, int size, int width,
> const int *runs)
>
> static int find_group3_syncmarker(GetBitContext *gb, int srcsize)
> {
> - unsigned int state = -1;
> + unsigned int state = UINT_MAX;
> srcsize -= get_bits_count(gb);
> while (srcsize-- > 0) {
> state += state + get_bits1(gb);
> diff --git a/libavformat/ac3dec.c b/libavformat/ac3dec.c
> index 4ceffa5..b9f4dd2 100644
> --- a/libavformat/ac3dec.c
> +++ b/libavformat/ac3dec.c
> @@ -61,7 +61,7 @@ static int ac3_eac3_probe(AVProbeData *p, enum AVCodecID
> expected_codec_id)
>
> if (max_frames) {
> int pes = 0, i;
> - unsigned int code = -1;
> + uint32_t code = 0xffffffff;
>
> #define VIDEO_ID 0x000001e0
> #define AUDIO_ID 0x000001c0
> diff --git a/libavformat/mp3dec.c b/libavformat/mp3dec.c
> index cba6778..0624dd0 100644
> --- a/libavformat/mp3dec.c
> +++ b/libavformat/mp3dec.c
> @@ -95,7 +95,7 @@ static int mp3_read_probe(AVProbeData *p)
>
> if (max_frames) {
> int pes = 0, i;
> - unsigned int code = -1;
> + uint32_t code = 0xffffffff;
>
> #define VIDEO_ID 0x000001e0
> #define AUDIO_ID 0x000001c0
> diff --git a/libavformat/rtmppkt.c b/libavformat/rtmppkt.c
> index f8c51d0..b3125e2 100644
> --- a/libavformat/rtmppkt.c
> +++ b/libavformat/rtmppkt.c
> @@ -538,7 +538,8 @@ static const char* rtmp_packet_type(int type)
> static void amf_tag_contents(void *ctx, const uint8_t *data,
> const uint8_t *data_end)
> {
> - unsigned int size, nb = -1;
> + unsigned int size;
> + uint32_t nb = 0xffffffff;
> char buf[1024];
> AMFDataType type;
> int parse_key = 1;
Just add a cast, like (unsigned int)-1 if the warning is the annoying
thing.
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel