avformat/utils: Check negative bps before shifting in ff_get_pcm_codec_id()
authorChris Cunningham <chcunningham@chromium.org>
Tue, 17 May 2016 18:28:32 +0000 (11:28 -0700)
committerMichael Niedermayer <michael@niedermayer.cc>
Tue, 17 May 2016 21:47:24 +0000 (23:47 +0200)
commit2875745d354ab0ebc4af1ebaca5c5a8d26ccdc03
treefc6efe5e11130be52e995108e79388ce7d8d26cd
parentd55568d22a5a6e59c087b8614227d5a0a3da4164
avformat/utils: Check negative bps before shifting in ff_get_pcm_codec_id()

Fixes: undefined shift.

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/utils.c