X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Fwsddec.c;h=574addf620733546a938a7cb8a058d9954860b27;hb=60f75c9976368d9921ea5cf2b9193ff8ace1602d;hp=81a4dcc71e956402f008073f7995cd80c27a48db;hpb=f32d2939555706365ad1d39aadd5ee7ce1d9fa4f;p=ffmpeg diff --git a/libavformat/wsddec.c b/libavformat/wsddec.c index 81a4dcc71e9..574addf6207 100644 --- a/libavformat/wsddec.c +++ b/libavformat/wsddec.c @@ -25,7 +25,7 @@ #include "internal.h" #include "rawdec.h" -static int wsd_probe(AVProbeData *p) +static int wsd_probe(const AVProbeData *p) { if (p->buf_size < 45 || memcmp(p->buf, "1bit", 4) || !AV_RB32(p->buf + 36) || !p->buf[44] || @@ -137,7 +137,7 @@ static int wsd_read_header(AVFormatContext *s) if (!(channel_assign & 1)) { int i; for (i = 1; i < 32; i++) - if (channel_assign & (1 << i)) + if ((channel_assign >> i) & 1) st->codecpar->channel_layout |= wsd_to_av_channel_layoyt(s, i); }