avcodec/vorbis: Fix another 1 << 31 > int32_t::max() with 1u.
Didn't notice this one when 9648cc6d was landed. Signed-off-by: Dale Curtis <dalecurtis@chromium.org> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit 95bacb521af8cd28f146f045437c9f75717a493a) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
		
							parent
							
								
									23319f7764
								
							
						
					
					
						commit
						c147aefc3e
					
				@ -67,7 +67,7 @@ int ff_vorbis_len2vlc(uint8_t *bits, uint32_t *codes, unsigned num)
 | 
				
			|||||||
    if (bits[p] > 32)
 | 
					    if (bits[p] > 32)
 | 
				
			||||||
        return AVERROR_INVALIDDATA;
 | 
					        return AVERROR_INVALIDDATA;
 | 
				
			||||||
    for (i = 0; i < bits[p]; ++i)
 | 
					    for (i = 0; i < bits[p]; ++i)
 | 
				
			||||||
        exit_at_level[i+1] = 1 << i;
 | 
					        exit_at_level[i+1] = 1u << i;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    ++p;
 | 
					    ++p;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user