avformat/utils: Check bps before using it in a shift in ff_get_pcm_codec_id()
authorMichael Niedermayer <michael@niedermayer.cc>
Tue, 10 May 2016 22:00:52 +0000 (00:00 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Tue, 10 May 2016 22:32:32 +0000 (00:32 +0200)
commitea791c080dd5494b3bee0c618a3f52e371b5f320
tree24cfae484d1e4d9728464bb0332e9463fff1660e
parent8efaee3710baa87af40556a622bf2d96a27c6425
avformat/utils: Check bps before using it in a shift in ff_get_pcm_codec_id()

Fixes undefined shift
Fixes: usan_shift

Found-by: Thomas Guilbert <tguilbert@google.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/utils.c