Fixes undefined shift Fixes: usan_shift
Unified · Split
| @@ -2955,6 +2955,9 @@ enum AVCodecID ff_codec_get_id(const AVCodecTag *tags, unsigned int tag) · 2954 unmodified lines | |||
| 2955 | 2955 | ||
| 2956 | enum AVCodecID ff_get_pcm_codec_id(int bps, int flt, int be, int sflags) | 2956 | enum AVCodecID ff_get_pcm_codec_id(int bps, int flt, int be, int sflags) |
| 2957 | { | 2957 | { |
| 2958 | if (bps > 64U) | ||
| 2959 | return AV_CODEC_ID_NONE; | ||
| 2960 | |||
| 2958 | if (flt) { | 2961 | if (flt) { |
| 2959 | switch (bps) { | 2962 | switch (bps) { |
| 2960 | case 32: | 2963 | case 32: |