Revision dcc3a30b

View differences:

libavcodec/h264.c
8122 8122
        nalsize = 0;
8123 8123
        for(i = 0; i < h->nal_length_size; i++)
8124 8124
            nalsize = (nalsize << 8) | buf[buf_index++];
8125
        if(nalsize <= 1 || nalsize > buf_size){
8125
        if(nalsize <= 1 || (nalsize+buf_index > buf_size)){
8126 8126
            if(nalsize == 1){
8127 8127
                buf_index++;
8128 8128
                continue;

Also available in: Unified diff