1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-15 14:13:16 +02:00

avcodec/ff_h264_decode_sei: fix integer overflow with size.

This issue is hypothetical and no testcase is available.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer
2013-07-21 16:34:14 +02:00
parent 800ffa1fc0
commit 80c873a87e

View File

@@ -244,7 +244,8 @@ static int decode_frame_packing(H264Context *h, int size){
int ff_h264_decode_sei(H264Context *h){ int ff_h264_decode_sei(H264Context *h){
while (get_bits_left(&h->gb) > 16) { while (get_bits_left(&h->gb) > 16) {
int size, type; int type;
unsigned size;
type=0; type=0;
do{ do{