Browse Source

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>
tags/n2.1
Michael Niedermayer 12 years ago
parent
commit
80c873a87e
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      libavcodec/h264_sei.c

+ 2
- 1
libavcodec/h264_sei.c View File

@@ -244,7 +244,8 @@ static int decode_frame_packing(H264Context *h, int size){

int ff_h264_decode_sei(H264Context *h){
while (get_bits_left(&h->gb) > 16) {
int size, type;
int type;
unsigned size;

type=0;
do{


Loading…
Cancel
Save