Fix hang when decoding some JPEGs using VMETA