This website works better with JavaScript.
Home
Help
Sign In
falkTX
/
FFmpeg
mirror of
https://github.com/falkTX/FFmpeg.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
338
Wiki
Activity
Browse Source
avformat/utils: Check negative bps before shifting in ff_get_pcm_codec_id()
Fixes: undefined shift. Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
tags/n3.1
Chris Cunningham
Michael Niedermayer
9 years ago
parent
d55568d22a
commit
2875745d35
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
libavformat/utils.c
+ 1
- 1
libavformat/utils.c
View File
@@ -2955,7 +2955,7 @@ enum AVCodecID ff_codec_get_id(const AVCodecTag *tags, unsigned int tag)
enum AVCodecID ff_get_pcm_codec_id(int bps, int flt, int be, int sflags)
{
if (bps > 64
U
)
if (bps
<= 0 || bps
> 64)
return AV_CODEC_ID_NONE;
if (flt) {
Write
Preview
Loading…
Cancel
Save