avcodec/cinepakenc: Fix invalid shifts
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Sun, 6 Oct 2019 05:23:14 +0000 (07:23 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 6 Oct 2019 18:00:59 +0000 (20:00 +0200)
commite3650dcfc9cde6ceccf7bbc225962da196e2a386
treeb28c97e1f582e17ba421be7bb9586c78a882a89b
parent670fd3b0ec8f81f7cb69932715562ddcd55096ec
avcodec/cinepakenc: Fix invalid shifts

Fixes: left shift of 1 by 31 places cannot be represented in type 'int'.
Affected the FATE-tests vsynth1-cinepak, vsynth2-cinepak and
vsynth_lena-cinepak. Also fixes ticket #8220.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/cinepakenc.c